Including Jamiz, there are 14 girls in the class. If this if half of the total number of pupils (as half are girls, the other half being boys) the total number of students is 14 × 2 = 28 students
There is no algebraic way of isolating X unfortunately. For these equations, you have to solve with numerical approximation. I suggest Newtons method if you know calculus.