
Nitin P. answered 04/29/20
Machine Learning Engineer - UC Berkeley CS+Math Grad
We can solve this by setting up a system of equations in two variables. Let c be the cost of a chair and t be the cost of a table. Then, we have:
12c + 2t = 43
3c + 5t = 40
Now, we can eliminate c by subtracting 4 times the second equation from the first equation to get:
-18t = -117
t = $6.50
Then, we substitute this into the second equation to get:
3c + 32.5 = 40
c = $2.50
Therefore, a chair costs $2.50 and a table costs $6.50.