This is not a random sample since she is outside of a pet store and the probability of people owning a dog coming out of that store is very very high. If she went around the neighborhood and knocked on people’s door and asked if they had a dog or not would be random sample.
6x + 45 + 3x = 180
9x - 45 = 180
9x = 135
x = 15