The total bill for a group of friends having dinner was $130. ​They paid the entire bill using only $5 and $ 10$ bills. ​In total, there were 16 bills used. ​How many of each type of bill were used to pay the bill?