Sue took a taxi from her home to her friends house. It cost $3.58 per mile and she gave the driver a $5 tip. If she paid $87.34, how many miles does she live from her friend?