Answer:
Pizzas are $15
Sandwiches are $8
Step-by-step explanation:
Write a system of equations
Pizza = x
Sandwiches = y
2x + 4y = 62
4x + 10y = 140
Isolate a variable in one of the equations
2x = 62 - 4y
x = 31 - 2y
Plug isolated x value into other equation
4(31-2y) +10y = 140
124 - 8y + 10y = 140
Simplify
2y = 16
y = 8
Plug y value into equation to solve for x
2x + 4(8) = 62
2x + 32 = 62
2x = 30
x = 15