Baboons belong to a part of the primate family called "Old World Monkeys" and Chimpanzees belong to a part called "Hominidae" (or the Great Apes). Both Hominindae and Old World Monkeys share a common ancestor, but after that the families branch off and continue on separate evolutionary paths. Baboons and Chimpanzees are very distant relatives, and neither one evolved from the other.
The hominidae are the "great apes." There are multiple ape species including chimpanzees, orangutans, gorillas and humans. Apes are not monkeys, and monkeys are not apes. The apes are all tailless primates. They are omnivores and most prefer fruits. They have three different types of teeth. The molars (3,) the smaller premolars (2,) the canines (1) and the incisors (2.) They are all social animals and the females do not have a distinct breeding season. All apes gestate for around 9 months or so and their young mature in about 10 years (give or take a few years.) Some of the apes are are more closely related to each other than others. There is a subgroup to hominidae that is homininae. This group is composed of chimpanzees, gorillas and humans but not the aforementioned orangutans. There is another subgroup, hominini. This group eliminates the gorillas and includes humans and chimpanzees.