Given a distance, two different speeds and time how to determine how far was traveled on each speed.

For example, if 100m has been traveled in 5 seconds and there was the option to travel the distance by bike and on foot. Speed on bike is 40m/s and speed on foot is 10m/s, how far did the person travel by bike and how much on foot? (Yes values are not actual representation of the real world)