Megan has $50 and saves $5.50 each week. Connor has $18.50 and saves $7.75 each week. After how many weeks will megan and connor have saved the same amount

Set up the Balance function B(w) where w is the number of weeks for Megan:
B(w) = savings per week * w + Current Balance
B(w) = 5.50w + 50

Set up the Balance function B(w) where w is the number of weeks for Connor:
B(w) = savings per week * w + Current Balance
B(w) = 7.75w + 18.50

The problem asks for w when both B(w) are equal. So we set both B(w) equations equal to each other:
5.50w + 50 = 7.75w + 18.50