find the value of p if the line which passes through (-1, -p) and (-2,2)…