Solutions for 2.48 and 2.49
Solutions for 2.50 and 2.51