For this case we propose a system of equations:
D: Variable that represents the age of Daniel
B: Variable that represents Ben's age
According to the data we have:

SUBSTITUTING the first equation in the second:

So, Daniel is 2 years old.
ANswer:
Daniel is 2 years old.