Yiping takes a Lyft home from the soccer game. He uses Lyft Premier, which costs $5 plus $2.30 per mile, and his bill comes to $22.25. How many miles did he travel?