PLEASE HELP FIGURE OUT THE EQUATION!!!

f = twenty bill
f = fifty bill
f + t = 18(gave total 18 bills) and 50f + 20t = 450 ($450 cash a check)
Answer is B.
f + t = 18 ; 50f + 20t = 450