My dog was infected with ticks what should I do?

We have three dogs and have never faced this situation before. Recently, ticks have become uncontrollable, appearing overnight even after using tick shampoos; they reappear the next day. We have no idea where they’re coming from. I am worried about our dogs and the house since we’ve been seeing ticks around, which is unusual for us. Recently, a stray cat has been wandering in our yard, and my dad has been feeding it. After a month, two more stray kittens showed up. We cannot keep them, but they stay in our garden. We are not very knowledgeable about cats. Could the ticks be coming from them? Does anyone have advice on how to completely remove ticks from our dogs and house? Has anyone else experienced this, and how did you resolve it?