ok, looking at it again, im guessing that they are 2 spearate problems?
for the first one, you are missing the water produced so you cant do a mass balance. the only thing you can do is find the moles of carbon. hydrogen is a mystery if you have no info on it.
second one is easy:
change all grams to moles.
divide by the smallest quantity (prolly either C or O, most likely O)
this will give you the empirical formula.
figure out the empirical weight by adding up the g/mol for all the atoms. this should be a whole number factor of the GAM, so divide the GAM by this number and you will have the scaleup ratio for the actual molecular formula.
*edit*
i have an idea for the first one.
once you find moles of C, you can take the mass of that out of the 10g. whats left should be only hydrogen atoms, allowing you to find moles of H.