Read the bar heights for dog and cat from the graph, then subtract.

• Pupils who prefer dogs = 42 (from graph)
• Pupils who prefer cats = 24 (from graph)
• Difference = 42 − 24 = 18

Final Answer: 18