Dear student
Since you have not mentioned question number so doing as per my understanding.
Kindly refer the link for your  first query.