A ladder rests against a wall at an angle a to the horizontal. Its foot is pulled away from the B wall through a distance p, so that it slides a distance q down the wall making an angle β with the horizontal. Prove that : p/q = (cosβ - cosα)/(sinα - sinβ)