Solution for problem 28
Solution for problem 29
Solution for problem 30