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,
[tex]\begin{gathered} 3x+y=38 \\ y=38-3x \end{gathered}[/tex]The equation for total cost of ticket on second day is,
[tex]3x+2y=52[/tex]Substitute 38 - 3x for y in equation to obtain the value of x.
[tex]\begin{gathered} 3x+2(38-3x)=52 \\ 3x-6x=52-76 \\ x=-\frac{24}{-3} \\ =8 \end{gathered}[/tex]Substitute 8 for x in equation y = 38 -3x to obtain the value of y.
[tex]\begin{gathered} y=38-3\cdot8 \\ =38-24 \\ =14 \end{gathered}[/tex]So cost of a student ticket is $8 and cost of a adult ticket is $14.