There are 40 pupils in a class. There are x more girls than boys. How many boys are there in terms of x?