To find the value of "w", you need to isolate/get the variable "w" by itself in the equation:
700 - 35w = 450 + 15w Add 35w on both sides to get "w" on one side of the equation
700 - 35w + 35w = 450 + 15w + 35w
700 = 450 + 50w Subtract 450 on both sides
700 - 450 = 450 - 450 + 50w
250 = 50w Divide 50 on both sides to get "w" by itself

5 = w It will take 5 weeks for you and your friend to have the same amount of money in your accounts