Report question

Question: How to calculate end points of perpendicular line segments?