The given path can be illustrated in the following diagram:
She has only 30 miles worth of gas, if she comes back through the same path then the total distance is:

Therefore, she has not enough gas to go back using the same path.
Now, the total distance traveled in a straight path (SP) can be found using the Pythagorean theorem, we get:
![\begin{gathered} SP=\sqrt[]{13^2+24^2} \\ SP=\sqrt[]{745} \\ SP=27.3\text{ miles} \end{gathered}](https://tex.z-dn.net/?f=%5Cbegin%7Bgathered%7D%20SP%3D%5Csqrt%5B%5D%7B13%5E2%2B24%5E2%7D%20%5C%5C%20SP%3D%5Csqrt%5B%5D%7B745%7D%20%5C%5C%20SP%3D27.3%5Ctext%7B%20miles%7D%20%5Cend%7Bgathered%7D)
Therefore, she needs to take a straight path.