Your question doesn’t look like a doubt but more like a homework help. Please be specific about your query rather than asking for the complete solution. Such complete solutions are advised when questions are conceptual and benefit the community as a whole which doesn’t look like in this case.