Since oxygen appears only in one compound on both sides of the reaction arrow, you can use the same trick that you used in writing formulas. Multiply the O2 by 3 (the number of oxygen atoms in SO3) and the SO3 by 2 (the number of oxygen atoms in O2).

2 S   +   3 O2   ®    2 SO3