What type of problems are these?

I need help solving the following questions. I have no idea what type of problems they are or what formulas to use. Any help would be very appreciated. Thank you!!!!

A certain diet requires at least 60 units of protein, no more than 120 units of sodium, and no more than 80 units of fat. From each serving of food A there is derived 30 units of protein, 30 units of sodium, and 10 units of fat. From each serving of food B there is derived 20 units of protein, 20 units of sodium, and 20 units of fat. If food A costs $1.00 per serving and food B costs $0.90 per serving, how many servings of each food can there be while keeping cost at a minimum?

A company makes two products, one deluxe and one regular. There are 8 hours available daily on the assembly line, and 12 hours available at the painting station. Each deluxe item takes 2 hours of assembly and 2 hours of painting. Each regular item takes 1 hour of assembly and 3 hours of painting. If the profit from each deluxe item is $420 and the profit from each regular item is $360, how many of each should be made daily to maximize profit?