Element X has three electrons in its outermost orbit.
Element Y has seven electrons in its outermost orbit.

What is the chemical formula of the ionic compound
formed by these elements when they react together?
(Use X and Y as the chemical symbols.)

PLEASE SOMEONE EXPLAIN THIS IN DETAIL