We have the number of molecules of each reagent. The number before the molecule indicates the number present, the subindex after each atom tells us how many are inside the molecule and reflects the type of compound we have:
We do the same for another molecule:
If we add up all the atoms we will have:
C: 6
O: 12 + 6 = 18
H: 12
So, we will need 18 oxygen atoms (O) must be present in the products.