Stella's equation is given by

where x represents the miles, y the total cost and 100 is the flat rate.
Now, since the maximun amount of money is $270, we need to find x in our formula. that is,

Then, by moving 100 to the left hand side, we get

then x is given by

so, the greatest number of miles is 340 miles