I want to buy 40 articles consisting of pens at Rs. 4, erasers at Rs. 2 and rulers at Rs. 17. If I spend Rs. 301, how many of each do I buy?