Each aluminum loses 3 electrons in order to be like neon. Each oxygen gains 2 electrons in order to be like neon. In its elemental state, aluminum has 13 electrons. You know already when an element combines to form a compound, it does so to gain stability.