In Linguistics $101,$ the ratio of the number of juniors to the number of seniors is $3:2$. When $6$ more juniors join the class, and $1$ senior drops the class, the ratio of the number of juniors to the number of seniors becomes $18:7$. How many students are in the class after these changes?