please see the attached picture for full solution
hope it helps
good luck on your assignment..
5.7m questions
7.4m answers