120 boys with a 4:5 ratio, first divide 120 by 4 leaving you with 30, since theres just 1 more girl for every boy, theres 1 more 30 you add, leaving you with 150.
Take your 2 numbers and combine (120+150) leaving you with your answer
270 students total.