you simply need to know that standard deviation is a representation of how far away from the mean the values of a set are.
So the standard deviation of 5,5,5,5,5 is smaller (it's in fact 0) than the standard deviation of 4,5,5,5,6 even though both have the same mean.
The key to this question is that we know the average, and that both sets contain at least 3 of the same numbers.. so:
Set S: [30,40,50,_,_]
Set T: [30,40,50,_,_]
For 1:
S: [25,30,40,50,_]
Give that we know the average is 40, the 5th number must be 55. So S: [25,30,40,50,55]
But we don't know anything about T, so INSUFF
For 2:
T: [_,30,40,45,50]
Give that we know the average is 40, the 5th number must be 35. So T: [30,35,40,45,50]
But we don't know anything about S, so INSUFF
Together, we can look and see that the two values that differ between S and T are a bit more spread out with S... so S will have a larger standard deviation. SUFF