To find out how many weeks it will take for John and Sarah to save the same amount of money, we must set their respective functions equal to each other and solve for x.
J = S
28 + 4x = x2 + 2x + 20
x2 + 2x - 4x - 8 = 0
x2 - 2x - 8 = 0
(x - 4)(x + 2) = 0
x = 4 or x = -2
Since x must be a positive value, the answer is that it will take John and Sarah 4 weeks to have the same amount of money saved.