problem 40