#"Let the number of passengers who booked for tourist class be"= x#
#"Then, number of passengers who booked for first class" = 52-x#
#"According to question,"#
#color(red)("Total money paid = $25(tourist class)+$30(first class) "#
#$1360=$25(x)+$30(52-x)#
#1360=25x+1560-30x#
#1360-1560=25x-30x#
#-200=-5x#
#x=(cancel-200)/(cancel-5)#
#color(blue)(x=40#
#"So, there were 40 tourist class passengers."#
#"Now first class passengers" = 52-x#
#=52-40#
#color(blue)(=12#
#therefore##color(magenta)(" There were 40 tourist class passengers and 12 first class passengers. "#
#color(green)("As a check"#
#color(red)("Total money paid = $25(tourist class)+$30(first class) "#
#RHS=$25(40)+$30(12)#
#$1000+$360#
#=$1360#
#LHS=$1360#
#"Hence verified."#
#-"Hope this helps! :)"#