In order to answer this question let's suppose,
Joe is x miles from the beginning and y miles from the end. These assumptions are necessary to answer further:
Now,
x=2y
x+y=30
plugging in x=2y in the above equation
2y+y=30
3y=30
y=10
Hence, according to our calculations, Joe has to hike 10 miles further