A bike rental charges a flat fee of $500. As well as $0.05 every mile. If you spent$10 how many miles did you take the bike for? Write and solve an equation for this problem