It dawned to me. I tried with the elimination system. First to separate the non-metals that are gasses at room temperature (H,inert gasses,N,O,F,Cl). A and B react so I eliminate the inert gasses. From the other informations I could only think off how to use this:"weak acidic solution" and the boiling point. Weak acidic solution produce hydrides of elements from the VIa group and the VIIa group (they are more acidic) and the acidity increaces in the group.One of the substances is hydrogen then. From the VIa group, oxygen is the only gass that produces a hydride (water) but because of the hydrogen bond the boiling temperature can't be 19.5°C (it is 100°C). Only hydrogen-halides left (HF and HCl, because only Cl and F are gasses on room temperature) and HF is a weaker acid than HCl so the answer is HF and it is the right answer. The problem is that I won't be able to use the periodic system.
And I can't solve the second one.