It takes 5 seconds for a train to pass a road sign, 20 seconds to pass a 300 meter cave, and how many seconds to pass an 800 meter bridge? Using equation

It takes 5 seconds for a train to pass a road sign, 20 seconds to pass a 300 meter cave, and how many seconds to pass an 800 meter bridge? Using equation

Let the length of the car be x meters and the speed be V meters per second
Pass the first condition
We get X / v = 5
The second condition
(300+x)/v=20
These two formulas can solve X and V
X = 80 m v = 20 m / S
So the time of an 800 meter bridge t = (800 + 80) / 20 = 44 seconds