Ok, great to have you! I will finally answer your question.
This seems to be a system of equations. I solve most of mine on Desmos.
Let us write two equations to model this:


We get the graph. Note the intersection at (26,33).
That means that route X is 26 miles long,and route Y is 33 miles long!.
Hope this helps.