Answer:
Let's use a system of equations to solve this problem.
Let c be the cost of one package of cookies. Then we can write two equations based on the given information:
5c + 1m = 17 (where m is the cost of one gallon of milk)
10c + 3m = 36
We want to solve for c, so let's eliminate m by multiplying the first equation by 3 and subtracting it from the second equation:
10c + 3m = 36
-(15c + 3m = 51)
-5c = -15
Simplifying, we get:
c = 3
Therefore, each package of cookies costs $3.