Answer:
Slope of PQ:

2 = 3(1) + b
2 = 3 + b
b = -1
y = 3x - 1
To obtain the equation of the line parallel to PQ through R:
5 = 3(12) + b
5 = 36 + b
b = -31
y = 5x - 31
Midpoint of QR:
((3 + 12)/2, (8 + 5)/2) = (15/2, 13/2) =
(7.5, 6.5)
Slope of QR:

To obtain the equation of the line perpendicular to QR through the midpoint of QR:
13/2 = 3(15/2) + b
13/2 = 45/2 + b
b = -32/2 = -16
y = 3x - 16