I'm SURE you left something out of the space between "ran" ... and ...
"the distance". But here in the Math category, it's our job to answer the
questions, not to fix them.
The question tells us that Jillian ran 40 miles, and that Lacey ran
the distance that Jillian ran. We can logically conclude, therefore,
that Lacey ran 40 miles.