10

20

30

Q = Point(b)
P = Point(a)
O = Intersect(a, b)
d = Segment(O, Q)
c = Segment(O, P)
M = Point(c)
f = OrthogonalLine(M, xAxis)
N = Intersect(f, d)
e = Segment(M, N)
distanceMN = Distance(M, N)
text1: "המרחק בין שני הולכי הרגל הוא " + (3.0 * e)
text2: "(" + (x(M)) + ", " + (2.0 * x(M)) + "V)"
text3: "(" + (x(M)) + ", " + (-x(M)) + "V)"