A and B tells you what type of element it is. Group A are the representative elements. Group B are the transition metals. I also think only group B can have multivalent elements. The number itself is the the number it is given when you count left to right on the Table. With representative metals, the number also tells you the number of valence electrons elements in that row have so...1a has 1 electron, 2a has 2, 3a has 3.
Hope this helps.