Answer:
Step-by-step explanation:
From the problem statement, we can create the following equation:

where
is the age of James,
is the age of Paul, and
is the age of Dan.
From the first part of the second sentence, we can set up the following equation:

From the last part of the second sentence, we can set up the following equation:

We can substitute the second equation into the last one to get the following:



We can then substitute the last two equations in the first to solve for
:



Plugging this into the other two equations will give us the remaining ages:





