In a school there are w more girls than boys. If there are x girls How many pupils are there in that school?

There are w more girls than boys. 
That means that there are w + x girls, and w + (x - w) boys. 
That also means that there are 2w + x students in the school.