Problem 2 subsection 5-B

Explaining the solution in full with how to get it (the hardest part)