Forty students bought caps at the baseball game.Plain caps cost $4 each and deluxe ones cost $6 each. If the total bill was $236, how many students bought the deluxe cap?