Mrs Taba owns parrots, cats and dogs, all of which live in her home. The number of dogs living in her home is twice the number of parrots, while the number of cats is one more than the number of parrots. When Mrs Taba looks at all of her pets, she sees a total of 46 legs. Algebraically represent the number of dogs and cats in terms of the number of parrots.