Algebraic Solution (incomplete)
Let x = the number of girls who must leave
the class
99 - x   =  98
  100 – x      100
Solve the above proportion.