Maths Week Scotland 2026 - Challenge 2 - Pets

Part ofLearn & revise

Challenge 2 - Pets

Challenge 2 is all about a classroom survey.

Maths teacher Chris Smith and pupils from Grange Academy are here to explain.

The Maths Week Scotland Daily Challenges have been set by the Scottish Mathematical Council.

So here's the challenge:

This problem is all about a classroom survey.

Mrs McFarlane has 25 children in her primary class. One day she asks them about their pets:

“Put your hand up if you have a dog.” 14 hands go up.

“Put your hand up if you have a cat.” 10 hands go up.

“Now put your hand up if you have a dog and a cat.” 7 hands go up.

How many of the children in Mrs McFarlane’s class don't have either a dog or a cat?

Image of whiteboard with survey results: Dog = 14, Cat = 10, dog & cat = 7 - how many have neither?
Class survey results: Parrot = 3, parrot = dog, 13 have no parrot or dog, how many have a dog but no parrot?

Need a hint?

  • Is there a graph, chart or diagram you can use to organise the information?
  • Remember that some of each class may put their hand up more than once.
  • Don't forget the total number in each class.

Solution

Worked out the answer? Here's how you can do it.

Part 1 - Mrs McFarlane's class

Venn diagram of two overlapping circles, one titled 'dog', one titled 'cat', with the intersection titled 'dog and cat'.

Step 1

One way to do this is to put the information into a Venn diagram.

We've got two main groups:

  • Pupils with a dog.
  • Pupils with a cat.

The area where they overlap shows pupils who have both a dog and a cat.

Venn diagram of two overlapping circles, one titled 'dog', one titled 'cat', with the intersection titled 'dog and cat'.
Venn diagram of dog and cat owners. 7 have a dog only, 3 have a cat only, 7 have a dog and a cat. The universal set has 25 people.

Step 2

There are 7 pupils with a dog and a cat, so we can take this away from the other totals.

  • 14 pupils have a dog.

    • 14 - 7 = 7
    • We can write a 7 inside the circle with dogs.
    • This shows 7 pupils have a dog but no cat.
  • 10 pupils have a cat.

    • 10 - 7 = 3
    • We can write a 3 inside the circle with cats.
    • This shows 3 pupils have a cat but no dog.
Venn diagram of dog and cat owners. 7 have a dog only, 3 have a cat only, 7 have a dog and a cat. The universal set has 25 people.
Venn diagram. Out of a universal set of 25 people, 7 have a dog only, 3 have a cat only, 7 have a dog and cat, 8 have neither a dog or a cat.

Step 3

Add the three numbers together:

  • 7 + 7 + 3 = 17

This shows the total number of pupils with a pet is 17.

Take this away from the class total:

  • 25 – 17 = 8

There are 8 children who don't have a dog or a cat.

Venn diagram. Out of a universal set of 25 people, 7 have a dog only, 3 have a cat only, 7 have a dog and cat, 8 have neither a dog or a cat.

Part 2 - Mr Asif's class

Venn diagram. Out of a universal set of 25 people, 3 own a parrot. Parrot owners is fully within the circle of dog owners.

Step 4

We can use another Venn diagram for Mr Asif's class.

We know that:

  • Three children have a parrot.
  • All three of them also have a dog.
  • The circle for children with a parrot is fully inside the circle showing dog owners.
Venn diagram. Out of a universal set of 25 people, 3 own a parrot. Parrot owners is fully within the circle of dog owners.
Venn diagram. Out of a universal set of 25 people, 3 have a parrot and a dog, 9 have a dog only, and 13 have neither a parrot or a dog.

Step 5

13 pupils have no pet. We can take this away from the total number of pupils:

  • 25 -13 = 12

This means there are 12 pupils with a dog.

Take away the number of pupils with a parrpt and a dog to find the the number of pupils with a dog but no parrot

  • 12 - 3 = 9

Nine pupils have a dog but no parrot.

Venn diagram. Out of a universal set of 25 people, 3 have a parrot and a dog, 9 have a dog only, and 13 have neither a parrot or a dog.

Maths problem solving. collection

Try out Maths Week Scotland challenges from previous years.

Maths problem solving

Maths Week Scotland. External Link

Find more maths challenges and activities at the Maths Week Scotland website.

Maths Week Scotland