Answer:
Her pin must be 1147
Explanation:
A little trick I have up my sleeve when I have these kind of questions is that I find the square root of each number, then find what is prime.

Since the only prime numbers in the range of 31 and 38 is 31 and 37.
We can then multiply 31 by 37 to get 1147.