A car rental company charges $31 per day to rent a particular type of car, and $0.19 per mile. Juan is charged $59.31 for a one-day rental. How many miles did he drive? (Show your algebraic work)