MgCl2
The formula itself tells you that for every MgCl2 molecule, there are two Cl atoms.
So you divide the moles of Cl- by 2.
I'm not two sure about number too though, you'll have to rely on nliu for an explanation as to why one of more electronegative than the other haha
Edit: Dayum these scotch college boys got chemistry covered
LOL. Scotch College boys? Nah; thushan did 3/4 chemistry in year 9 or something. He's the exception, not the rule.
Just remember that the order of electronegativity goes fluorine, oxygen, chlorine, nitrogen etc.
how would you figure out how many double bonds C17H31COOH has? is there a formula?
There is a formula, yes, but I'd do this with some common sense.
The COOH bit can be replaced with a hydrogen for simplicity as that is singly bonded to the rest of the molecule and contributes one double bond that you know already from C=O.
So we have C17H32. Recall that alkanes have the form C2H(2n+2). E.g. C2H6, C3H8 for ethane, propane.
C17H36 is your alkane. You've lost four hydrogens, two hydrogens per double bond=>two extra double bonds. Three including C=O.