Pam asked a bank teller to cash a check for $130. The teller gave Pam a total of 9 bills. She received $10 bills and $20 bills. How many of each type of bill did Pamela receive? Write a system of equations to solve the problem.