Alan takes a taxi at the rate of $3 per mile. The taxi company charges an additional pickup fee of $5. How many miles did Alan travel if the total fare was $29?
a) 8 miles
b) 7 miles
c) 6 miles
d) 5 miles