Here's a breakdown of the phrase:
* Que: This is a conjunction that introduces a clause.
* tienes: This is the conjugated form of the verb "tener" (to have) in the second person singular (you).
* que hacer: This means "to do".
* para sacar: This means "to get" or "to achieve".
* buenas notas: This means "good grades".
So, the entire phrase is asking about the steps or actions necessary to achieve good grades.