I NEED THE CORRECT ANSWER IN ORDER TO PASS PLS HELP!

Write an equation for the following problem and Solve it.

A taxi cab in Myrtle Beach charges $2 per mile and $1 for every person. If a taxi cab ride for two people costs $12, how far did the taxi cab travel?