Thanks for looking into it!
]]>Solve the triangles APZ and MQZ.
Compute angles BAZ and AZX: gives the slope of XY.
We know XY goes through the point P which we can compute.
So we can get the equation of line XY.
Solve against the equations for FE and CD to get the coordinates of X and Y.
From these compute length XY.