Solved P. 51 with explanation