Solution
Given: y = mx + 3 and y = px + 2 are perpendicular.
So mp = -1, hence p = -1/m.
x-intercepts:
For first line: x_L = -3/m
For second line: x_M = -2/p = 2m
Distance LM = 5:
2m + 3/m = 5
2m^2 - 5m + 3 = 0
(2m - 3)(m - 1) = 0
m = 3/2 (since m > 1)
p = -2/3
m + p = 3/2 - 2/3 = 5/6