Final answer:
Casey and Dylan each have 2 pets, Hannah has 4 pets, and Gavin has 12 pets, summing up to a total of 20 pets.
Step-by-step explanation:
Let's denote the number of pets Casey and Dylan each have as x. Hannah has the total number of cats and dogs, which is 2x. Gavin's goldfish number is 3 times the number of Hannah's hamsters, so Gavin has 3(2x) = 6x goldfish. The total number of pets is given as 20, so the equation to find the value of x is:
x + x + 2x + 6x = 20
Simplifying, we get:
10x = 20
Dividing both sides by 10 gives us:
x = 2
Therefore:
-
- Casey's cats: 2
-
- Dylan's dogs: 2
-
- Hannah's hamsters: 4 (2x)
-
- Gavin's goldfish: 12 (6x)
Each person has a different number of pets as calculated above, summing up to the total of 20 pets.