Which group in the periodic table (1A... 5A) reacts with H2 to form compounds with the general formula MH2? Which reacts with F2 to form compounds with the general formula MF2?

Any help would be great, thanks.

Wouldn't Group IIa fit this bill?

H2->MH2=GROUP 5A

Yes, you are correct! Group IIa in the periodic table (also known as alkaline earth metals) reacts with H2 to form compounds with the general formula MH2. The elements in this group include Beryllium (Be), Magnesium (Mg), Calcium (Ca), Strontium (Sr), Barium (Ba), and Radium (Ra).

On the other hand, Group IIIa to Group V a (also known as Group 13 to Group 15, respectively) react with F2 to form compounds with the general formula MF2. This includes elements such as Boron (B), Aluminum (Al), Gallium (Ga), Indium (In), Thallium (Tl), Carbon (C), Silicon (Si), Germanium (Ge), Tin (Sn), Lead (Pb), Nitrogen (N), Phosphorus (P), Arsenic (As), Antimony (Sb), and Bismuth (Bi).

To determine which elements in the periodic table react with specific elements or form certain compounds, you can refer to the periodic table and identify the positions and properties of the elements.