Your answer would be 12 fish.
We can find this by writing a set of equations where 'h' is hamsters and 'f' is fish. The information given tells us two ways in which f can be written:
f = 3h
f = h + 8
As these both equal 8, we can set them equal to each other and solve for h:
3h = h + 8
- h
2h = 8
÷ 2
h = 4
Now that we know there are 4 hamsters, we just multiply 4 by 3 as there are 3 times as many fish, to get 12.
I hope this helps!