Answer:
Xavier's age = 23
Yifei's age = 27
Explanation:
Represent Yifei's age with Y and Xavier's age with X;
Given that the sum of their ages is 124;
X + Y = 124
Also, given that Yifei is 4 years older
Y = X + 4
Required
Find their age when they got married
From the parameters above, we've been able to form a simultaneous equation


Substitute X + 4 for Y in the first equation


Subtract 4 from both sides


Divide both sides by 2


Substitute 60 for X in the second equation
becomes


To get their ages when they got married; we simply subtract 37 from their current ages
Xavier's age = 60 - 37
Xavier's age = 23
Yifei's age = 64 - 37
Yifei's age = 27