Related questions

Question

How do you get S for both of them?