You must burn 1.17 g C to obtain 2.21 L CO₂ at STP.
The balanced chemical equation is
C + O₂ → CO₂.
<em>Step 1</em>. Convert <em>litres of CO₂ to moles of CO₂</em>.
STP is <em>0 °C and 1 bar</em>. At STP the volume of 1 mol of an ideal gas is 22.71 L.
Moles of CO₂ = 2.21 L CO₂ × (1 mol CO₂/22.71 L CO₂) = 0.097 31 mol CO₂
<em>Step 2</em>. Use the molar ratio of C:CO₂ to <em>convert moles of CO₂ to moles of C
</em>
Moles of C = 0.097 31mol CO₂ × (1 mol C/1 mol CO₂) = 0.097 31mol C
<em>Step 3</em>. Use the molar mass of C to <em>calculate the mass of C
</em>
Mass of C = 0.097 31mol C × (12.01 g C/1 mol C) = 1.17 g C
It looks as if you are using the <em>old (pre-1982) definition</em> of STP. That definition gives a value of 1.18 g C.