Basrd on the mass ratio of the elements given, 10 g of B is needed to form compound AB2.
The equation of the reaction of a fixed mass of A with B to form AB id given below:
From the data provided, 5 g of A reacts with 5 g of B to form AB.
Then, to form the compound AB2:
mass ratio of A and B is 1:2
5 g of A is needed
2 ×:5g of B is needed = 10 g of B.
Therefore, 10 g of B is needed to form compound AB2.
Learn more about mass ratio at: https://brainly.com/question/24473649