Hey,
since
y=mx+(-)

(a
2m
2+b
2)
It contains
(those points put in equation
(p,q)[my alp and bet arent coming]
(q-m(p))2=a2m2+b2.
find m1 and m2 from equation as(m1+m2) and m1m2
put in angle equation
Ps:lazy to type the whole thing.if you want or if you didnt understand please post

.