solve problem 30