Let a represent the cost of adult tickets and c represent the cost of children's tickets.
On the first day, $138.50 worth of tickets were sold by selling 5 adult tickets and 2 child tickets. This means that:
[tex]5a+2c=138.50[/tex]On the second day, $185.50 worth of tickets were sold by selling 7 adult tickets and 2 child tickets. This means that:
[tex]7a+2c=185.50[/tex]We can solve the simultaneous equations by subtracting the two equations:
[tex]\begin{gathered} 7a-5a+2c-2c=185.50-138.50 \\ 2a=47 \\ a=\frac{47}{2} \\ a=23.5 \end{gathered}[/tex]We can solve for c by substituting for a into the first equation:
[tex]\begin{gathered} 5(23.5)+2c=138.50 \\ 117.5+2c=138.50 \\ 2c=138.50-117.50=21 \\ c=\frac{21}{2} \\ c=10.5 \end{gathered}[/tex]Therefore, an adult ticket costs $23.50 and a child ticket costs $10.50.