Write the balanced equation for the formation of sulfur trioxide, SO3, from the elements of sulfur, S, and oxygen, O2.

Would it be:
2S(s)+3O2(g)->2SO3 ?

2 answers

Yes, that is correct.
If your prof is a stickler, s/he may prefer that you write it as
S8 + O2 ==> SO3 and I will let you balance it.