just to help clarify, the reason you use 2x in those equations is because x is the concentration of of barium. You need twice as much fluorine than barium that's why you put in there 2x. but when they give you the amount of barium you don't need it, and the value turns into x because in a problem like that the barium concentration would be higher or lower and you just solve. it's a little confusing but just remember what x actually is not just putting x in when you see one of these problems. hope that helps