An element A forms a compound AH3 with hydrogen. Another element B forms a compound BA2 with B. Given that the valency of hydrogen is 1, what are the valencies of A & B?