We don't know the number of pets that received checkups or vacinations, we need to find it, so we will assign variables to these numbers. The variable x will be the number of pets that received checkups and y will be the number of pets that were vaccinated. Therefore we can write an equation as shown below:
This means that each checkup costs $45, while each vaccination costs $90 so sum of the product of the pets that did either of those things must be equal to the revenue of the veterinary.
We were also informed that the number of check-ups was 6 greater than the number of vaccinations, therefore:
If we replace the second equation on the first one, we can solve for y as shown below:
We can solve for x by using this value on the second equation:
The solution to this is that 10 pets got checkups, while 4 got vacinations. So the answer is B.