A mother's age is $8$ times older than her son. When her son's age is half ($\frac{1}{2}$) of mother's current age, the sum of their ages is $60$. What was the mother's age when her son was born?
I only could write that $M = 8S$, $t$ = passed time.
$$S + t = \frac {M}{2}$$
$$S + t + M= 60$$
$$\frac{M}{2} +M = 60$$
$$2M = 120$$
$$M = 60$$
EDIT: We can easily find mother out.
$$M = 8S, S + t = \frac {M}{2}, M = 40$$
Now we need to know what her son's age is.
$$M = 8S, 40 = 8S, S = 5$$
Why is it wrong? The right answer seems $18$, which I didn't get why.
Edit since OP just edited the question
So $M = 8S$. We have $$S+t = \frac{M}{2} \iff t = \frac M2-S$$ and thus the son's age will be half the mother's current age in $\frac M2 -S$ years.
The sum is then $60$ so $$\frac M2 + M + (\frac M2 -S) = 60$$
Indeed, the son's age is then $\frac M2$ and the mother's age $M + (\frac M2 - S)$.
Thus $$2M-S = 60$$
Now using $M=8S$, you should be able to conclude.