A=P

O = (0, 0)
a = Line(O, xAxis)
O' = Point(a)
A = (3, 2)
B = (6, 5)
c = Circle(O, A)
d = Circle(O', B)
b = Line(O, A)
e = Line(O', b)
Q' = Intersect(d, e, 1)
f = Segment(O, A)
g = Line(Q', A)
I = Intersect(a, g)
h = OrthogonalLine(O', g)
Q = Mirror(Q', h)
r = (-1.6704992290249447, 4.5197332426303864)
i = Ray(O, r)
R = Intersect(c, i, 1)
j = Line(r, O)
k = Line(O', j)
l = Line(R, I)
S' = Intersect(l, k)
m = OrthogonalLine(O', l)
S = Mirror(S', m)
n = Line(R, A)
p = Line(Q, S)
M = Intersect(n, p)
q = OrthogonalLine(M, a)