to draw a line segment perpendicular to XY passing through point x
and I need help with all of it plz help me

to draw a line segment perpendicular to XY passing through point x and I need help with all of it plz help me class=