See Priyanshi, if element A has 3 electrons in the outermost shell ,then it will have charge A3+,that u too know about it. Now if element B has 6 electrons in the outermost shell , then it will have B2-, cause removing 2 electrons is easier than removing 6 electrons, you konw that. Thus the element thus formed will be:- A2B3. Hope it helps you...^_^