First, write an equation system based on the problem
An equation for "Jami and Mami together had 32" is
⇒ j + m = 32 (first equation)
An equation for "If Mami gives Jami 5, they'll have the same amount"
⇒ m - 5 = j + 5 (second equation)
Second, simplify the equation. I simplify the second equation
m - 5 = j + 5
m = j + 5 + 5
m = j + 10
Third, subtitute m with j+10 in first equation
j + m = 32
j + j + 10 = 32
2j + 10 = 32
2j = 22
j = 11
Fourth, subtitute j with 11 in second equation
m = j + 10
m = 11 + 10
m = 21
Jami had $11, Mami had $21