This question is combining stoichiometry along with the concept of gases which states that "1 mole of any gas at STP occupies ~22.4 L. 1 mole of H2= 22.4L at STP.
The balanced chemical equation given tells us that for every 2 mol of Al 3 mol of H2 is produced {if not sure about this review stoichiometric calculations!!!}
The steps are : L H2 → mol H2 → mol Al → g Al
5.00 L H2 *(1 mol H2 ⁄ 22.4 L H2 ) * (2 mol Al ⁄ 3 mol H2 ) * (26.98 g Al ⁄ 1 mol Al) = 4.01 g Al
Note; If you use 27.0 as molar mass of Al answer is 4.02 g