Concept:
Valence electrons determine the combining capacity or valency of atoms.
• An atom with 2 valence electrons tends to lose 2 electrons.
• An atom with 7 valence electrons tends to gain 1 electron.
The formula of a compound depends on balancing the valencies of the combining atoms.
Step 1: Finding the valencies of A and B.
Atom \(A\) has 2 valence electrons.
Therefore, its valency is:
\[
2
\]
Atom \(B\) has 7 valence electrons.
To complete octet, it needs 1 electron.
Hence, its valency is:
\[
1
\]
Thus,
\[
A = 2, \qquad B = 1
\]
Step 2: Writing the molecular formula using valencies.
Using criss-cross method:
\[
A^{2} \quad B^{1}
\]
After criss-crossing valencies:
\[
AB_2
\]
Therefore, the molecular formula formed is:
\[
\boxed{AB_2}
\]
Hence, the correct option is:
\[
\boxed{(3)\ AB_2}
\]