A hen costs $4 and chicks are sold at 3 for $2. A farmer paid $100 exactly for 80 of these birds. How many of each type did he buy?​