let the cost of the adult ticket is 'x'
and the cost of the student ticket is 'y'
so the equation for jimmy's purchase is,
7x + 6y = 126 ...... (1)
and the equation for the jenny's purchase is,
5x + 2y = 52 ......... (2)
multiply equation (2) by 3,
15x + 6y = 156 ........ (2)
Now, the subtract the equation (1) from equation (2)
15x + 6y - (7x + 6y ) = 156 - 126
15x + 6y - 7x - 6y = 30
8x = 30
x = 30/8
x = 3.75 $
put x = 3.75 in equation (2)
5(3.75) + 2y = 52
18.75 + 2y = 52
2y = 52 - 18.75
y = 33.25/2
y = 16.625 $
so the cost of an adult ticket is 3.75 $
cost of a student ticket is, 16.625 $