i need some help with a command where you throwing a snow ball and it summons a fire ball

i need some help with a command where you throwing a snow ball and it summons a fire ball but i want it to only work with a snow ball with a name
Continue to help post