The answer is 2PbS(s) + 3O2(g) = 2PbO(s) + 2SO2(g)
Your answer is not yet balanced because you have 3 oxygen atoms. it should be balanced by multiplying both side by 2 such as the balanced equation I made. To check it, I will explain why your answer is not yet balanced.
check: (from your equation) 1-Pb-1 1-S-1 2 -O-3 the difference between the reactant and the product of Oxygen will prove that it is not yet balanced.
If you use 2PbS(s) + 3O2(g) = 2PbO(s) + 2SO2(g), to check it: 2-Pb-2 2-S-2 6 -O-6 then this is now balance