You are completely right! Good job.
I will explain why;
A. The question states that the triangles are similar, meaning that all corresponding angles are equal and that all the corresponding sides have the same ration.
It already states the angle of S, which is 102.
B. You know the values of the other angles, and you know the angle sum is 180.
so,
180-102-39=39
Therefore, this is 39.