The study of chemicals and bonds is called chemistry. There are different types of elements and are metals and nonmetals,
The correct answer is mentioned below.
According to the question, they will make an ionic bond each filling out eight valence electrons through electron sharing the formula would be: BeO
Hence, the compound will be BeO.
For more information about the valency, refer to the link:-
https://brainly.in/question/9531558