You can 
put this solution on YOUR website! .
The number of pupils who visited the museum is 9x;  the number of pupils who visited the zoo is 4x,
where x is the common measure of these two quantities.
We are given that  9x - 4x = 45.   It implies  5x = 45,  i.e.  x = 45/5 = 9.
Hence, the number of pupils visiting zoo is  4x = 4*9 = 36.   ANSWER