Megan has some five dollar bills and some ten dollar bills. She has 24 bills. The value of the bills is $160.

How many of each kind of bill does she have?

f+t = 24

5f+10t = 160