When graphed, nonlinear functions are parabolas. Both the equation and the table will graph as parabolas so they are both nonlinear. Nonlinear functions do not have a constant rate of change. And if you look at the table, when an x value increases, the y value decreases and then increases.
You plug -2 in for the function k(p) and add it to the function g(w), getting (-2+3)*(-2-7)+(-2-5)^2=1*-9+49=40 for a - I challenge you to do B on your own!