jasmine took a cab home from her office. the cab charged a flat fee of $4, plus $2 per mile. Jasmine paid $32 for the trip. How many miles was the cab ride?