Your friend has owned a dog for 9 years. This is one year less than twice as long as he has owned a cat. Write an algebraic equation to determine how many years your friend has owned a cat.