Answer:
A has 3 electrons in outermost orbit and B has 6 electrons in its outermost orbits. So A can give three electrons to complete its octet and B need 2 electrons to complete its octet. so 2 atoms of A will release 6 electrons and 3 atoms of B will need six electrons to complete their octet So, the formula will be A2 B3.