Jim B. answered 05/05/15
Tutor
4.8
(111)
Author, The Everything Parent's Guide to Common Core Math Grades K-5
The number of boys plus the number of girls = the total number of students
Let g represent the number of girls
Then the number of boys is 3g + 7 [in the problem you might be missing the word "times, The number of boys in the cafeteria is 7 more than 3 times the number of girls]
Since boys + girls = 87
(3g + 7) + g = 87
Solve for g to get the number of girls in the cafeteria, then use g to calculate the number of boys.