This looks a bit like a minimization problem or linear programming problem. However, the problem doesn't ask for that?
Assume that you are trying to minimize the amount of compound 1 and compound 2 but be sure that you still get the required amount of Vitamin C & D.
Putting into EXCEL like that & using SOLVER, you get that you use 75 mg of Compound 1 and 0 mg of Compound 2 and end up with 30 mg of Vitamin C and 22.5 mg of Vitamin D.