the smith family has cats and dogs. in how many ways can these pets be placed in a row of chairs such that at least cats are next to each other?