Use the image to answer the question.

A bar graph shows pet ownership.
The x-axis shows type of pet and represents dog, cat, golfish, and hamster. The y-axis represents number of students and ranges from 0 to 11 in increments of 1. The data shows 10 dogs; 8 cats; 2 goldfish; and 3 hamsters.

Use the graph to determine the difference in the percentage of students who have dogs for pets and the percentage of students who have hamsters for pets. Round the percentages to the tenths place.

The total number of students represented in the graph is 23 (10 dogs + 8 cats + 2 goldfish + 3 hamsters = 23 total pets).

Percentage of students who have dogs as pets: (10 dogs / 23 total pets) * 100 = 43.5%
Percentage of students who have hamsters as pets: (3 hamsters / 23 total pets) * 100 = 13.0%

Difference in percentages: 43.5% - 13.0% = 30.5%

Therefore, the difference in the percentage of students who have dogs for pets and the percentage of students who have hamsters for pets is 30.5%.