Traditional Culture Encyclopedia - Travel guide - A tourist goods dealership wants to buy two kinds of souvenirs, A and B. If 38 yuan is used to buy 7 souvenirs of A and 8 souvenirs of B; You can also buy A with 38 yuan.

A tourist goods dealership wants to buy two kinds of souvenirs, A and B. If 38 yuan is used to buy 7 souvenirs of A and 8 souvenirs of B; You can also buy A with 38 yuan.

(1) Let the purchase price of A and B souvenirs be X yuan and Y yuan respectively. According to the meaning of the question,

get 7x+8y = 381x+6y = 38 (2 points), and get x = 2y = 3 (4 points)

Answer: A and B. a)≤95a+7(4? A)≥216, (7 points)

, get: 3 ≤ A ≤ 32. (8 points)

Let the total profit be w,

∵ the total profit w=5a+7(4-a)=-2a+28 is a linear function of A, and