Since Lithium has one valence electron that means it needs to lose it to form a stable structure. That means it's valence is equal to one. Oxygen has six atoms, in order to form a stable octet structure it needs to accept 2 electrons, therefore it's valence is 2.
Therefore two Lithium atoms bond with one oxygen atom to form Li2O