hi everyone can anyone help with this, the question and diagram is in the pic thx!

Answer:
QP
Explanation:
P has 9 electrons.
Electronic Configuration : 2, 7
Valence electrons : 7
P needs 1 electron to get stable electronic configuration.
Q has 3 electrons.
Electronic Configuration : 2, 1
Valence electrons : 1
P needs to loose 1 electron to get stable electronic configuration.
Q donates 1 electron,
Q -----> Q+ + 1 e-
P gains 1 electron,
P + 1 e- -----> P-
Q+ + P- -----> QP
This is an ionic compound.