Add solutions for problem 47 to 50