Set up an equation that can be used to solve the problem. Solve the equation and determine the desired value.
When sales representatives for a pharmaceutical company drive to out-of-town meetings that require an overnight stay, they receive $160 for lodging plus $0.50 per mile driven. How many miles did Joe drive if his company reimbursed him $265 for an overnight trip?