We can see that S contains integers that are factors of 12. Letting the variable s describe these set elements, then we have that the set S is made of the elements s such that every s is a factor of 12. Now we can write it in set-builder notation.
S={ s | s is a factor of12 }