Question 1179663

Sam bought 3 shirts and 2 pairs of pants for $85.50. Randy bought 4 shirts and 3 pairs of pants for $123. How much does one shirt cost? How much does one pair of pants cost?
<pre>Let the cost of a shirt and pair of pants be S, and P, respectively
Then we get: 3S + 2P = 85.5 ------ eq (i)
Also, 4S + 3P = 123 ------ eq (ii)
Subtract eq (i) from eq (ii) to get: S + P = 37.5, or S = 37.5 - P
Substitute the value of S into eq (i) to get an equation in P. 
From there, solve for P to get a pair of pants, or {{{highlight_green(matrix(1,3, P, "being:", "$27"))}}}