The three sides of the triangle are
L1:y=x+1(m1=1),
L2:y=4x−8(m2=4),
L3:y=mx+c(m3=m).
Their orthocentre is given to be H(3,−1).
Step 1: Find the vertex opposite to L3.
Intersect L1 and L2:
x+1=4x−8⟹3x=9⟹x=3,
y=3+1=4.
Hence C(3,4).
Vertex C is opposite the side L3.
Step 2: Use the orthocentre to obtain the slope of L3.
Altitude through C must pass through H(3,−1).
Slope of CH is
3−3−1−4=0−5⟹vertical line x=3.
Therefore L3, being perpendicular to this altitude, must be horizontal:
m=0⟹L3:y=c.
Step 3: Express the remaining two vertices in terms of c.
Intersection of L1 with L3 gives
y=c=x+1⟹B(c−1,c).
Intersection of L2 with L3 gives
y=c=4x−8⟹x=4c+8,
so A(4c+8,c).
Step 4: Use the altitude from A to determine c.
Slope of side BC is
3−(c−1)4−c=4−c4−c=1.
Hence the altitude from A is perpendicular to BC, so its slope is −1.
Equation of the altitude passing through the orthocentre H(3,−1) is
y+1=−1(x−3)⟹y=−x+2.
This altitude must also pass through A:
c=−4c+8+2.
Multiply by 4:
4c=−(c+8)+8=−c.
Therefore 5c=0⟹c=0.
Step 5: Compute m−c.
We have m=0 and c=0, hence
m−c=0−0=0.
Thus m−c=0.
Option A is correct.