Assuming the traveling speed to be constant, the law that involves space, speed and time is
![s = vt](https://img.qammunity.org/2019/formulas/mathematics/high-school/yt28ns6y2rhpdcp49jkmtwp70pxnlhof56.png)
So, the sentence "Traveling at an average speed of 50 miles per hour, the trip from point A to point B takes 2 hours" translates to
![s = 50\cdot 2](https://img.qammunity.org/2019/formulas/mathematics/high-school/6hrf31ktocjqbw2o91xswb56zxrdc9qkbp.png)
from which we deduce that A and B are 100 miles apart. In fact, we also have
![s = 40\cdot 2.5](https://img.qammunity.org/2019/formulas/mathematics/high-school/4smclcs3sp9amy8xqsl9jrotl7bqbpsqdu.png)
which again yields s = 100.
Now, the question changes the perspective, because it asks for the time needed to travel at a certain speed. Now that we know that the distance is 100 miles, if we travel at 45 miles per hour we have
![100 = 45t](https://img.qammunity.org/2019/formulas/mathematics/high-school/svzov61lks3t4g92yhoi3p80mv4d3hjhdc.png)
from which we can deduce
![t = \cfrac{100}{45} = 2.\overline{2}](https://img.qammunity.org/2019/formulas/mathematics/high-school/qwjg28qb6xmvwmwgx1thkekyvkjzyhva5q.png)
which, rounded to the nearest hundreth, is 2.22.