Let the number of rabbits in the pet store is x
And the number of hamsters in the pet store is y.
Now, we have been given that pet store has 26 rabbits and hamsters. Thus, we have the linear equation

Now, number of rabbits is 2 more than double the number of hamsters. Hence, we have

Substituting this value of x in equation 1, we get

Thus, there are 8 hamsters in the pet store.