The beginning tennis class has twice as many students as the advanced class. The intermediate class has three more students than the advanced class. How many students are in the advanced class if the total enrollment for the three tennis classes is 39?

A. 10
B. 15
C. 9
D. 12

is it B

Let a = the advanced class.

2a + a + 3 + a = 39

4a + 3 = = 39

4a = 36

a = 9