.
S is the sum of two numbers, and the larger is M times the smaller. Determine numbers.
Partial solution with problem:
X = smaller number.
MX = larger.
X + MX = S
X(1 + M) = S
X = S / (1 + M) <<<---=== Till this line everything is correct; you just got the solution, which you do understand.
MX = MS /(1 + M) <<<---=== what is in this line, is the calculation of the second number.
Simply the first number is multiplied by M, in accordance with the condition.
I am not clear how the MX was solved for.
Non-homework.
My comments are inside your text.