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