Molar mass of C= 12g/mol
2C= 2*12g/mol= 24g/mol
Molar Mass of F=19g/mol
4F= 4*19g/mol= 76g/mol
Total molar mass of C2F4 = (24g/mol+76g/mol)= 100g/mol
Now you need to find the moles of Fluorine
Moles= Mass/molar mass
Moles of Fluorine = 5.71g/100g/mol=0.0571mol of Fluorine
To find the number of atoms you multiply moles by Avogadro's number(

)
So the number of Fluorine atoms= 0.0571* 6.022x10^23= 3.44x10^22 atoms or
atoms
You should read up on Proust's law, better known as the Law of Definite Proportions. This is a chemical law that defines your question more generally, on why the ratio of elements and ions are always fixed.
Basically, this compound Magnesium(II) Chloride is MgCl2 because it has the same number of protons, neutrons, and electrons all the way. This defines the properties of the compound or atom.
Acid, however it is quite weak. Water's pH is somewhere between 5.4 and 7
Answer:
atomic structure - The nucleus is at the center of an atom, where most of the charge and mass are concentrated
protons - a stable subatomic particle occurring in all atomic nuclei, with a positive electric charge equal in magnitude to that of an electron, but of opposite sign.
neutrons - a subatomic particle of about the same mass as a proton but without an electric charge, present in all atomic nuclei except those of ordinary hydrogen.
electrons - a stable subatomic particle with a charge of negative electricity, found in all atoms and acting as the primary carrier of electricity in solids.
atom vs. ion - an atom is the basic unit of a chemical element, and an ion is an atom or molecule with a net electric charge due to the loss or gain of one or more electrons. See also cation, anion.
Mass number - total number of protons, and neutrons in an atom.
Explanation:
i hope this is what you were looking for.