1. A company manufactures two products. The price function for product A is p = 16 -x ,

, and for product B is g =

both in thousands of dollars, where x and y are the amounts of products A and D, respectively. If the cost function is

thousands of dollars, find the quantities and prices of the two products that maximize profit. Also find the maximum profit.