Create your notes while watching video by clicking on icon in video player.
It should be (y-y1)/(x-x1) = (y2-y1)/(x2-x1) after equating slopes PA and PQ and not (x2-x1)/(y2-y1) written on board in next few seconds. After that, rest of the equations are fine.