Problem about angles

 

Run Applet

 

Find the angle APB by using a and b
if the point P is between the line l and m.