An element 'X' has six valence electrons and 'Y' has three valence electrons in the outermost shell. The formula of the compound formed when they react with each other is:
a. XY
b. X₂Y₃
c. X₃Y₂
d. X₂Y