x= adult passes
y= child passes
z=ride tickets
the first family:

the sencond family

third family

now we have the 3 equations, and we can solve x, y and z
for the equation of the second family we have:

reeplace the new equation(4) in (1), we have:



reeplace (4) in (3)




with 5 and 6, we have a 2x2 equation
that we can solve easier
solving 5 and 6, we have:

reeplace 7 in 6

now we find y, reeplace z in (7)

and finally we can find x, reeplacing y and z in (4)
