mary is now three times as old as susan. Three years ago,the sum of their ages was 22. how old is susan now

Susan's age now ---- x

Mary's age now ------3x

Three years ago:
Susan ---- x-3
Mary ----- 3x-3

x-3 + 3x-3 = 22

continue