since there are two question, so i am solving only one question , if you want to solve another question then send it again.
Step by stepSolved in 3 steps with 1 images