In a school there are 700 girls and the rest are boys. If there are 142 more boys than girls How many pupils are there in that school?