I have attempted this question by finding how many kg HF would be produced if we used 400kg of CaF2 then divided it by 140kg then multiplied it by 100%.
Your method is incorrect - it will give an answer >100% yield (which is impossible). Also, show your calculation for the theoretical maximum amount of HF that could be produced.
Strip the problem down to the basics.
Answer this question, then apply the same method:
An orange contains 250 mL of orange juice. The orange is squeezed, and 200 mL of juice is collected. Express the amount of orange juice obtained as a percent yield.