What is the Difference Between Similar But Different Things, Terms, and Objects

What is the Difference between Yams and Sweet Potatoes

Sweet potatoes and yam are two different vegetables but they are known to a large number of people as one vegetable. So in this confusion, people uses these terms interchangeably, leave aside laymen, even professional cooks, sometimes do not know if they are a single vegetable or two different vegetables.