Start by counting to 100 by threes
This is just a distracting tactic.
Get your body in hand first, and the mind will have a better chance to follow. Counting by threes will make you think about it a little and momentarily distract you from the panic, and you’ll have a better chance to think clearly. Get control of your breathing, blood pressure, and pulse.
Get and stay physically calm.