Each Pb$_3$O$_4$ contains 2 Pb$^{2+}$ and 1 Pb$^{4+}$. So for 2 molecules:
We get 4 Pb$^{2+}$ and 2 Pb$^{4+}$ → Total 6 Pb atoms.
Pb$^{4+}$ gets reduced to Pb$^{2+}$ and oxygen is released:
$2 \text{Pb}_3\text{O}_4 \rightarrow 6 \text{PbO} + \text{O}_2$