In her wallet, Ms. Thompson has one-dollar, five-dollar and ten-dollar bills totaling $171. She has the same number of five-dollar bills as one-dollar and ten-dollar bills put together, If she has 30 bills in all, how many bills of each denomination does she have?