solve problem 54