Problem 3 subsection 5-A

Typing out all the solution in full.