Solve problem 38