Perpendicular Line

Construct a line perpendicular to the line AB and going through the point P.

After a successful construction, use Hide tool to hide all auxiliary objects. Only given objects and the final product (perpendicular line) should be showing in the picture.