What will be the mass in grams of hydrogen atoms (only) that will be present in 22.2 g of compound A (XH3)?

There isn't enough information to answer this question. That answer is 22.2 g x %H in XH3 but you don't know the molar mass of XH3; therefore, you can't determine the percent H in compound A.