Given scientific fact as input, generate the question from this fact such that it can be answered from the input.
Q: The octet rule is a result of trends in energies and is useful in explaining why atoms form the ions that they do.
A:
Which rule is a result of trends in energies and is useful in explaining why atoms form the ions that they do?