Start by introducing variables for the number of minutes of morning (M), afternoon (A) and prime (P) time adverising.

Now translate the conditions in the question into constraints in terms of M, A, and P.

Now express the objective in terms of M, A and P.

When you have done that we can discuss finding the optimum.

CB