Let's say x is the time in hours.
Since it would take 20 more minutes, so we have 20/60 = 1/3.
TRIP____________speed______time___________distance
Actual___________40________x______________40x
Hypothetical_____30_______x+30/40_________30(x+1/3)
So the distances are equal so
40x = 30(x+ 1/3)
40x = 30x + 10
10x = 10
x = 1
Now let's plug x in. x * 40 = 40 so 40 miles.
Checking...
40 mph for 40 miles means 1 hour, 30 mph for 40 miles means 1 1/3 hour, and 1 hour is 60 minutes, 1 1/3 hour is 80, 80-60 = 20.
(This is from an answer I previously wrote.)
Don't worry, it's the EXACT same question, word by word.