A class went on a field trip to see a play. adult tickets cost $18 each and student tickets cost $12 each. there were 10 more students than adults that went to the play. if the trip cost $240 in all, how many adults and students went to see the play?