im not sure if what Mountain.Dew did is correct, but this what i would have done.
you have 2 lines:
y=(x+1)2
y=x2-4x
suppose that on the first graph, at P the x value is a
y=(x+1)2
y'=2x+2
at x=a, y=a2+2a+1
y'=2a-2
eqn of tangent, m=2a-2, (a,a2+2a+1)
y-a2-2a-1=(2a-2)(x-a)
y-a2-2a-1=2ax-2a2-2x+a2
y=2ax-2x+2a+1
on the second graph, at Q, x value b
y=x2-4x
y'=2x-4
at x=b, y=b2-4b
y'=2b-4
eqn of tangent, m=2b-4, (b,b2-4b)
y-b2+4b=(2b-4)(x-b)
y-b2+4b=2bx-2b2-4x+b2
y=2bx+4x-4b
now we have two tangents
y=2ax-2x+2a+1
y=2bx+4x-4b
gradients are equal
2a-2=2b+4
y intercepts are equal
2a+1=-4b
solve for a & b
a=13/2
b=7/2
sub back into tangents
y=13x-2x+13+1 -> y=11x+14
y=7x+4x-14 -> y=11x+14
weee!!! we get the same tangent!!!!
BUT, when i graphed all that, it didnt make sense!??!!??! so what's wrong?