Alan and Bob walk from school to the library. Alan takes 40 minutes while Bob takes 20 minutes. If they start walking from the school at the same time, how long will it take for Bob to be 2/5 as far as Alan from the library?

How can I setup an equation for this problem? I'm not quite sure how to deal with the fraction.

Thanks in advance.