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

arithmetic

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)

Best Answer

traveled distance=D=100

time taken=t=10

t=time on foot+time on bike=tf+tb

D=10*time on foot+40*time on bike=10tf+40tb

100=10tf+40tb => tf=10-4tb

edit: time taken was actually 5, not 10, but the idea is the same