20 points and brainiest answer to the person that solves this

Answer:
The answer to your question is: 17 years
Step-by-step explanation:
Data
Micaela's age = Sam's age + 2
In 4 years, Micaela's age + Sam's age = 40
Micaela = M
Sam = S
Equations
M = S + 2
M + S = 40
Solve the equations
S + 2 + S = 40
2S = 40 - 2
2S = 38
S = 38 / 2
S = 19 years old
M = 19 + 2
M = 21 years old, but this age is 4 years from now.
The actual age is
M = 21 - 4
M = 17 years old