Company A charges a fee of $5 for a cab ride, plus a charge of $0.50 for each mile driven.
Company B charges a fee of $10 for a cab ride, plus a charge of $0.10 for each mile driven.
For what number of miles driven will the cost of a cab ride be the same for both companies?