Explanation:
we can define the variables as follows:
x = cost per square foot of carpet flooring
y = cost per square foot of vinyl flooring
Then, we can write two equations to represent the total cost of the first purchase and the total cost of the second purchase:
650x + 800y = 3214 (the total cost of the first purchase)
190x + 80y = 556.40 (the total cost of the second purchase)
This gives us a system of linear equations that we can solve simultaneously to find the cost per square foot of each type of flooring