continuing homework

finishing up the homework
started on second problem created the variables

started on the second problem
Stuck on question 2

help plz