Let the price of student ticket be x and price of adult ticket be y.
The equation for total cost of ticket on first day is,
The equation for total cost of ticket on second day is,
Substitute 38 - 3x for y in equation to obtain the value of x.
Substitute 8 for x in equation y = 38 -3x to obtain the value of y.
So cost of a student ticket is $8 and cost of a adult ticket is $14.