let
x = cost of single chair
y = cost of single table
[tex]\begin{gathered} 12x+2y=39 \\ 3x+5y=57 \\ 2y=39-12x \\ y=\frac{39}{2}-6x \\ \\ 3x+5(\frac{39}{2}-6x)=57 \\ 3x+\frac{195}{2}-30x=57 \\ -27x=57-\frac{195}{2} \\ -27x=97.5 \\ x=\frac{-40.5}{-27} \\ x=\text{ 1.5} \\ \\ 12x+2y=39 \\ 12(1.5)+2y=39 \\ 18+2y=39 \\ 2y=39-18 \\ y=\frac{21}{2} \\ y=10.5 \end{gathered}[/tex]cost of rent of each chair = $1.5
cost of rent of each table = $10.5