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