Explanation:
A(n) = Alex's savings after n months = 20n + 50
B(n) = Ben's savings after n months = 15n + 80
to find the number of months until both have the same (!) amount of money saved we simply need to make both equations equal (find the n for which both are equal) :
20n + 50 = 15n + 80
5n + 50 = 80
5n = 30
n = 6
after 6 months they will have the same amount of money.