An uber charges a flat rate of $6 plus $1.25 per mile. Kayla can spend no more than $27.50. If she wants to tip her driver $4, what is the greatest number of miles she can uber?