A cash box of $1 and $5 bills is worth $45. The number of $1 bills is three more than the number of $5 bills. How many of each bill does it contain?