Write an equation for this word problem. Then solve.

A taxi company charges $2.25 for the first mile and $0.20 for each additional mile. If David’s taxi fare was $6.05, how many miles did he travel?