The great sweet potato vs yam controversy

Is it a sweet potato or is it a yam? Is sweet potato pie really made from yams? Are candied yams really made from sweet potatoes? I think I know the answer but I’m still confused every time I go to a store that labels them incorrectly, which seems to be practically every store. Followed by a recipe for sweet, smoky and spicy sweet potato home fries.