Sam is now four times as old as her cousin Patty. Next, year, Sam's age will be three times Patty's age then. How old are they now?

Now:

Patty ---- x years
Sam ----- 4x

next year:
Patty = x+1
Sam = 4x + 1

4x+1 = 3(x+1)

continue