Let X be the age of the older friend.

The younger friend is X-2 years old.

So, the age of both is X + (X-2) = 74.

X + X = 74 + 2.

2 * X = 76.

Then, the older friend is X = <<38=38>>38 years old.

# Answer

38
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The difference between the ages of two friends is 2 years. The sum of their ages is 74 years. Find the age of the older friend.
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
38
The difference between the ages of two friends is 2 years. The sum of their ages is 74 years. Find the age of the older friend.
train