A diet to contain at least 2400 units of vitamins, 1800 units of minerals, and 1200 calories two foods , Food A and Food B are to be purchased. Each unit of Food A provides 50 units of vitamins, 30 units of minerals and 10 calories. Each unit of food B provides 20 units of vitamins, 20 units of minerals and 40 calories. If Food A costs $2 per unit and Food B costs $1 per unit, how many units of each food should be purchased to keep costs at a minimum?