From the question, we are going to assume that the apartment, park and shop lies on a straight line.
We've been told that Mr. Ledic's apartment to the park is (5x + 6) miles and the trip from the park to the coffee shop is (23x - 8) miles while the coffee shop is nine miles from her apartment. This vsn be written as: