Solve problem 47
Solve problem 48
Solve problem 49
Solve problem 50