A tape worm pill for my dogs costs 6ish dollars from my vet.
You could call your local vet and ask if they know of any low cost clinics, also call your local animal shelter they might know.
Starting a savings account would be a good idea. Medical emergencies pop up. ITs part of owning a pet.