Add the number of pupils from all five classes.
Read each bar and find the total: 24 + 31 + 18 + 17 + 32 = 122.
Altogether, 122 pupils keep pets at home.

Final Answer: 122