How do I predict how long will it take for lava to reach the town, which is 10km from the lava vent, if I know that after 2 days lava was 5 km far from the vent.

Thank you

Lava traveled 5 km in 2 days. How long will it take for lava to travel 10 km?

But what about speed?

If you wish to calculate the velocity (rate), it is
distance = rate x time
5 km = rate x 2 days.
rate = 5 km/2 days = 2.5 km/day. Then, knowing the rate we can calculate the time for a new distance. That would be

distance = rate x time

10 km = 2.5 km/day x time and solve for time. Of course you can change all this to km/hour or some other time unit you wish; however, we assume that it travels at the same speed so 5 km in 2 days means 10 km in 4 days or 15 km in 6 days, or 20 km in 8 days etc.

20

To find out how long it will take for the lava to reach the town, which is 10 km from the vent, we can use the information that the lava traveled 5 km in 2 days.

First, we need to calculate the speed at which the lava is moving. We can use the formula:

rate = distance / time

In this case, distance is 5 km and time is 2 days. So:

rate = 5 km / 2 days = 2.5 km/day

Now that we know the rate at which the lava is moving (2.5 km per day), we can calculate the time it will take for the lava to travel 10 km.

Using the formula:

distance = rate x time

In this case, the distance is 10 km and the rate is 2.5 km/day. So:

10 km = 2.5 km/day x time

Solving for time:

time = 10 km / 2.5 km/day = 4 days

Therefore, it will take approximately 4 days for the lava to reach the town, assuming it continues to move at the same speed.