Let's assume that John buys x boxes of Cereal A and y boxes of Cereal B. Then, we can write the following system of inequalities based on the nutrient and calorie requirements:
10x + 5y ≥ 500 (minimum 500 units of vitamins)
5x + 10y ≥ 600 (minimum 600 units of minerals)
15x + 15y ≥ 1200 (minimum 1200 calories)
We want to minimize the cost, which is given by:
0.5x + 0.4y
This is a linear programming problem, which we can solve using a graphical method. First, we can rewrite the inequalities as equations:
10x + 5y = 500
5x + 10y = 600
15x + 15y = 1200
Then, we can plot these lines on a graph and shade the feasible region (i.e., the region that satisfies all three inequalities). The feasible region is the area below the lines and to the right of the y-axis.
Next, we can calculate the value of the cost function at each corner point of the feasible region:
Corner point A: (20, 40) -> Cost = 20
Corner point B: (40, 25) -> Cost = 25
Corner point C: (60, 0) -> Cost = 30
Therefore, the minimum cost is $20, which occurs when John buys 20 boxes of Cereal A and 40 boxes of Cereal B.