An element X (atomic number 17) reacts with an element Y (atomic number 20) to form a divalent halide

An element X (atomic number 17) reacts with an element Y (atomic number 20) to form a divalent halide.
(a) What is the position of elements X and Y in periodic table ?
(b) What will be the nature of oxide of element Y ? Identify the nature of bonding in the compound formed.

X - non-metal
Y - metal
Y$X_{2}$
(a) X - Position - Group -17, period - 3
Y - Position - Group - 2, period-4
(b) Basic YO, ionic bond.