The sum of the ages of a man and his son is 46years. In 4years time, the ratio of their ages will be

7:2. Find their present ages.

man's age --- x

son' age ---- 46-x

in 4 years from now:
man's age = x+4
son's age = 46-x + 4 = 50-x

(x+4)/(50-x) = 7/2
2x + 8 = 350 - 7x
9x = 342
x = 38

The man is 38 and his son is 8

check: sum of their ages is 46, check!
in 4 years, man is 42, son 12 , ratio is 42:12 = 7:2 , check!

my answer is correct.