Answer:
12 pencils in each package.
Step-by-step explanation:
Given:
Ethan bought 4 packages of pencils.
No of Packages = 4
No of pencils given to friend = 8 pencils
No of pencils left over =40 pencils
∴Total Number of Pencils = No of pencils given to friend + No of pencils left over =
Total Number of pencils in each package = 
We first must calculate how many ways 2 oblects can be chosen from 5.
combinations = 5! / 2! * (5-2)!
combinations = 5*4 / 2
combinations = 10
There are 10 ways to choose the 2 buttons and 5 ways to choose the final butto so there are 10 * 5 = 50 different ways.
Source
1728.com/combinat.htm
He should start cooking at 15:00