Okay, this may seem complex for some but its actually is simple!
However, we will have to use double fractions which a lot of people dont like
So we have (8/5)/24 for our units. However, we need to find 2 miles. 8/5 is a bit confusing and hard to represent if we are converting to integers.
But, theres a trick. We need 2 miles so we can actually make 2 = 10/5.
We now have (8/5)/24 = (10/5)/x
Using cross-multiplication, we can solve for x!
Hope this helps