problem 31