In reviewing the activities of the Mixing Department for the month of June, the manager of the department notices that there was an unfavorable materials price variance for the month and there was an unfavorable materials quantity variance. Under what circumstances, if any, can the responsibility for each variance be placed on the purchasing department and the production department?