In a class of 50 pupils 70% passed in the final examination. How many pupils failed?