The formula or chemical formula of a compound is same irrespective of source / mode of synthesis . Thus if a sample of compound has one carbon atom for every two atoms of oxygen (CO2), the formula will remains the same
So the answer is that for all other samples the compound X should hold this ration true.