A car rental company charges a flat fee plus a per-mile rate. The total cost , in dollars, for driving miles is given by the function , where is the per-mile rate and is the flat fee. If the flat fee is $40 and the total cost to drive 100 miles is $90, what is the per-mile rate, in dollars?