Displacement is the area under the graph and distance is the total area covered, including all positive and negative regions of the graph.
Displacement = Area of graph with sign
\[
= \left(\frac{1}{2} \times 10 \times 5 \right) + \left(10 \times 5 \right) = 25 + 50 = 75 \, \text{m}
\]
Distance = Area of graph with positive value
\[
= \left(\frac{1}{2} \times 5 \times 20 \right) + \left(5 \times 20 \right) = 25 + 50 = 250 \, \text{m}
\]
Now, the ratio of distance to displacement is:
\[
\frac{250}{75} = \frac{2}{5}
\]
Thus, the ratio is \( \frac{2}{5} \).