a dog weights two ponds less than three times the weight of a cat. the dog also weights twenty two pounds than the cat. write and solve an equation to find the weights of the dog and the cat.