Prove that if two lines with gradients m1 and m2 meet at an angle of 45°, then m1xm2 = m1-m2-1 or m1xm2 = m2-m1-1

Please help!! Ty xoxoxox

think of tan(A-B)