I got this question below:

4.Find the equation of the plane passing through A(2, 1, -1), that is perpendicular to each line:

a) ((x-5)/1) = (y/3) = ((z-1)/-1)

How do I solve this equation?

I get close to the answer, but the D value is always off.

Never mind, I was miscalculating something. I got the correct answer. It is x+3y-z-6=0