Try using this method; Let x= the number of childrens tickets, and (240-x)= the number of adult tickets. Setting up an equation, you should receive:
2.5x + 5(240-x) = 800
Solving for x gives 160, and (240-x) = 80.
Therefore, there will 160 childrens tickets and 80 adult tickets sold.