A student has some $1 bills and $5 bills in his wallet. He has a total of 13 bills that are worth $45. How many of each type of bill does he have?