In a race, five runners A, B, C, D, and E finish in the following order: A finishes before B but after C. D finishes before E but after B. What is the sequence of finishers?
Four friends, A, B, C, and D, have different pets: a dog, a cat, a bird, and a fish. A does not have the dog or the bird. B has a cat. C does not have a fish. What pet does D have?