a. If the daughter is w years old, the mother is w + 24 years old.
b. If the ratio of their ages is 5:2, then the mother is 5 times as old as the daughter. So, the mother's age is 5w and the daughter's age is 2w. Setting these equal, we have:
5w = 2w + 24
3w = 24
w = 8
So, the daughter is 8 years old and the mother is 5 * 8 = 40 years old