You must first calculate the total weight of 1 mole of the substance. You do this by finding the molar weights on the periodic table of each of the elements in the compound:
So now we take the amount of each element that is given in the compound and divide it by the total mass of the compound:
A compound can only be seperated through chemical means while a mixture are formed when two substances are added together without chemical bonds being formed.