First of all, it is necessary to clarify the proportional relationship between the data. Is it proportional or inverse?
For example, in the case of equal distance, speed is inversely proportional to time.
For example, A and B leave from A to B at the same time. A is 5:4 faster than B. It took A 20 minutes to get there. B how long did it take?
Then, because speed A: speed B =5:4, time A: time B =4:5.
So the time of B is 20*5/4=25 seconds.
If you don't understand anything, you can send me a message and ask me. I'd be happy to help you solve it.