Let the ticket of Ferris wheel is x.
Let the ticket of the roller coaster be y.
According to the question,
Before break,
[tex]2x+3y=24\ldots\text{.}\mathrm{}(1)[/tex]After break,
[tex]2x+y=12\ldots\ldots(2)[/tex]Now, solve both equations (1) and (2)
[tex]\begin{gathered} 2y=12 \\ y=6 \end{gathered}[/tex]Put the value of y = 6 in equation (1)
[tex]\begin{gathered} 2x+3\times6=24 \\ 2x=24-18 \\ 2x=6 \\ x=3 \end{gathered}[/tex]Therefore, for Ferris wheels, the number of tickets will be 3 and for roller coasters number of wheels will be 6.