this is what i would do i would do this is every student has 40 then 1 student has 40 then he gets a movie ticket so 40 - 5 = 35 then he buys candy for 7.50 so 35 - 7.50 = 27.5 then buys a 2 dollar trolley ride so 27.5 - 2 = 25.5 so every student was left with 25 dollars and 5 cents