In the given question there are certain information’s based on which the answer to the question can be easily reached.
Let us assume that the distance ran by Adam = x
The the distance ran by Julio = (x - 17) miles
It is also given that Julio had run 13 miles
The we can create an equation and that is
x - 17 = 13
x = 13 + 17
= 30
So Adam ran a distance of 30 miles.