Think about the classes Person and Student. Which class should inherit from which class?

Student should inherit from PersonPerson should inherit from Student

That's it! The more specific class inherits from the more general class.

It wouldn't make sense for the general Person class to inherit specific Student functionality since not all people are students.