The students in Class A and Class B were asked how many pets they have.The dot plot below shows the results