Which figure of speech is used in this text?
Good children listen to their parents. Great parents listen to their children.

 - chiasmus
 - assonance
The text uses chiasmus, an expression in which the second half parallels the first but reverses the order of words.
The second sentence reverses the order of the words children and parents relative to the first sentence.