Emma took a taxi from the airport to her house.
She paid a flat fee of $5 plus $3.70 per mile.
The fare came to $42.

Complete the equation that can be used to find the correct distance d in miles and then solve it to determine distance.