Empirical and molecular formula
$\ce{(C6H10S2O3)3}$ implies that there are $3 ~ \ce{C6H10S2O3}$ molecules bonded together instead of $1~ \ce{C18H30S6O3}$ molecule. Although they are the same thing, the correct notation is your teachers way because it shows the isometric formula for the molecule. Also if you were using that notation you should have put $\ce{(C6H10S2O)3}$ because $\ce{(C6H10S2O3)3}$ has 6 too many oxygens.