Artificial intelligent assistant

Find ages of two persons, with information about today and a certain moment in the past. The sum of the present ages of Erick and Henry is $55$. When Henry was same old as Erick's present age, Erick was $20$. What is Henry's present age? I'm still thinking on it. Let me show what I thought $$E + H = 55 \tag{1}$$ $$H -t = E \tag{2}$$ $$E -t = 20 \tag{3}$$ where $t = \text {passed time}$, $E = \text{Erick}$, $H = \text{Henry}$ I've gone too wrong, haven't I?

Seems good to me.

Three linear equations with three unknown variables. Should be solvable if they aren't dependent which they clearly aren't.

So try to solve them.

.... go ahead. Solve them... My solution is below but you should try solving them first.

One way: $H = E + t$ so substitute that back into the first to get $E + H = E+(E+t) = 2E + t = 55$. Add that to the last equation to get $(2E+t) +(E-t) = 55 + 20$ or $3E = 75$. So $E = 25$.

Plug that in and we get $25 + H = 55$ and $H - t = 25$ and $25 -t = 20$. From there is clear $H = 30$ and $t= 5$ and.... sure enough. Eric is $25$ and Henry is $30$ and $5$ years ago when Henry was $25$, Eric was $20$.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b2af7a9017dfe87be526ed8f9eb8344b