Jack has $24 in one-dollar and five- dollar bills. He has a total of 8 bills. How many of each bill does he have?​