Explanation:
what do you need to find ?
the number of pizzas and calzones they were eating ?
if so :
p = number of pizzas
c = number of calzones
3p + 2c = 18
2p + 5c = 23
let's multiply the first equation by 2 and the second squadron by 3, and then subtract the second from the first :
6p + 4c = 36
- 6p + 15c = 69
-------------------------
0 -11c = - 33
c = 3
2p + 5c = 23
2p + 5×3 = 23
2p + 15 = 23
2p = 8
p = 4
so, they were eating 4 pizzas and 3 calzones.