Solve problem 49