Given question is of type premise implies conclusion.
If premise is true then if conclusion is true, then the statement is valid otherwise not valid.
we can use the equivalence of implies , a implies b = a'+b
using this ,
S1: premise becomes :(a+b)'+c =1
i.e a'b'+c=1
conclusion becomes (ab)'+c = a'+b'+c = ab'+ba'+ab+c= ab'+ba'+ 1 ( since ab+c=1)
Hence premise is true implies conclusion is true, hence S1 is valid.
But in S2 the premise and conclusion are reverse of those in S1, so we can derive conclusion from premise like the above ,so S2 is not valid.