A taxi company charges a flat rate of $3 for using a taxi and $0.75 per mile. If the taxi ride costs $15 how many miles did the taxi travel?