The correct option is D YX3
According to the octet rule, elements tend to form bonds with each other in such a way that each of the elements get 8 valence electrons. Here, X has 7 valence electrons and Y has 5 valence electrons. Covalent compounds are most likely to be formed where sharing of electrons takes place here. Each X atom shares one electron with Y, so Y is surrounded by three X atoms and we get YX3