Well firstly, work out the number of moles of CaCO3.
N (number of moles) = m (mass) / Mr (molar mass)
This is trivial... 100/100 = 1 mol of CaCO3
So you have:
1 mol CaCO3
0.5 mol CCl3
Work out the percentage composition of carbon in each compound with respect to the molar mass.
In 1 mol CaCO3, the percentage of carbon is 12%
In 0.5 mol CCl3, the percentage of carbon is 7.8%
Now you can work out precisely how much carbon is present in each of the respective compounds.