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.
#### 38