I used this equation!
As m = -3 in this case, and (X1, y1) = (1-p,2) = (3,2). y-2 = -3*(x-3) → y = -3x+11
Similarly, (X2, Y2) = (6, 3p-1) = (6, -7) y+7 = -3*(x-6) → y+7 = -3*(0-6), y+7 = 18, y = 11