Explanation:
that is a college question ?
x = cost of a ham sandwich
y = cost of a turkey sandwich
2x + 3y = 29
3x + 2y = 31
let's multiply the first equation by 3, abd the second equating by -2, and then we add them :
6x + 9y = 87
-6x - 4y = -62
------------------------
0 5y = 25
y = 25/5 = $5
let's use the original first equation to get x (but we could use also the second equation, it does not matter).
2x + 3×5 = 29
2x + 15 = 29
2x = 14
x = $7
each ham sandwich costs $7.
each turkey sandwich costs $5.