Which rotation should be used when a node bcomes unbalanced depends on which child subtree (left or right) the offending value was inserted and which subtree (left or right) of that child.