A student took a survey of the class. There are 42 students in the class. The student surveyed favorite foods. 10 said hamburgers, 22 said pizza, 8 said french fries, and 2 said salad. Which percentage of the class chose pizza?