The textbook may also offer another hint, based on the number of bonds each atom can form, there should be a list for some common elements. Consider your alternate diagram H-H-O, one hydrogen has two bonds, one hydrogen has one bond ... why would that happen? You have oxygen with one bond, these are things that just don't happen.