Worked solution of said problem with explanation.