Solve problem 27
Solve problem 28
Solve problem 29
Solve problem 30