See if you can take traffic school and keep it off your record. 22 over, I have my doubts. You can spend a thousand or two on a lawyer or just bite the bullet and pay the fine. You'll be stuck with an insurance surcharge for three years until it drops off. It happens. I went almost 20 years without a blemish until one day backed out of a parking space and clipped a car going by. Three years of higher rates and I survived. So will you.
(I wrote that before seeing flyingron's comment. Take traffic school if you can get it. You might be able to take it online instead of going to a class.)
From now on set your cruise control, pay attention, and have patience. You'll get where you are going without passing other vehicles.

