see attachment answer and give the equations for the problems

see attachment answer and give the equations for the problems