Set up a chart:
Value of bill, # of bills, total value of that bill type
let x represent the number of 20$ bills.
5,(x+5),(5)(x+5)
20,x,(20x)
50,((x+5)/10),(5x+25)
We know the total of all the green values is our total in the wallet (800$)
so...
800=(5x+25)+(20x)+(5x+25)
x=25
since there are 25 20$ bills, there are 30 5$ bills,
the answer is choice B