One hat and two shirts cost $21. Two hats and one shirt cost $18.

Sam has exactly enough money to buy one hat and one shirt. How
much money does Sam have?

1 answer

If the price of hat and shirt be h&s

H+2s=21
2h+s=18

Solve for h&s

Sam has a total sum of =$h+$s