Hey! I don't know if I understood your situation correctly, but a basic way to go about it is to calculate the atomic masses of the elements in the substance based on its molecular formula and finding the values in the Periodic table of elements. Then apply the needed coefficients from the formula to get the ratio right.