Shontacilla, we know that distance = speed x time. Since the distances are the same, we can set each speed x time equal to each other.
If we let s = the number of seconds...
10(s + 40) = 30s
Eric travelled for 40 more seconds, according to the problem.
If we distribute...
10s + 400 = 30s
400 = 20s
s = 20
So, Robby travelled for 20 seconds, which means that Eric travelled for 60.
Hope this helps!