PLEASE HELP!!!!!

How does oxygen form an ionic bond? *

It gains 2 electrons from a metal
It transfers 6 electrons to a nonmetal
It gains 8 electrons from a metal or nonmetal
It shares 2 electrons with another nonmetal