Answer:
Compound 1: CO2
Compound 2: CO
Step-by-step explanation:
The attachment illustrrates the calculations. The masses of both C and O are converted into moles of those two elelements and the resulting mole values are taken as ratios of the two elements. Compound 1 has twice as many moles of O as of C, so it's empirical formula must be CO2. Compound 2's O/C ratio is 1, so it becomes CO.