Here's the balanced chemical equation:
2PbO + C → 2Pb + CO2
In this reaction, carbon acts as a reducing agent, taking oxygen away from the lead oxide. The carbon is oxidized to carbon dioxide.