Question 286659
x+y=5
x=5-y
2(5-y)+3y=16
Double check your numbers.
Let's say all of them got on the bumper cars 2*5=10
3*5=15
Even if all 5 got on the $3 ride they would not spend $16.

It would work if some got on both. But you don't say that.