My mother was yelling at me while I was trying to drive so I'm going to yell at her for doing that.
Why did your mother yell at you and distract you while you were driving?
She's angry with me but she shouldn't yell at me when I'm driving.
I'm sure you were very frustrated with your mother but she only wants the best for you. Politely tell her that while you're driving is not the best time to have a heated discussion. Yelling at her won't help to defuse a tense situation.
You're just saying that because you're mom.
If you want a good relationship with your mother you should avoid yelling at her. Explain how distracting her yelling at you was and how dangerous it is to do that while you are driving.