A group of students were asked what their favourite subject was in school. 12 students said math, 8 students said reading, 5 students said writing, 7 students said art, and 2 students said health. Create a graph for this collected data. How many students were asked altogether?