(20 1 1? Panzhihua), a head office operating a world-famous brand, has two branches in our city, A and B, both of which sell perfume and skin care products.

Solution: (1) According to the meaning of the question, the number of bottles of skin care products of company A is: 40-x,

The number of bottles of perfume and skin care products in company B is 70 ~ x, 30 ~ (40 ~ x) = x ~ 10 respectively.

w= 180x+200(40﹣x)+ 160(70﹣x)+ 150(x﹣ 10)=﹣30x+ 17700.

Therefore, the functional relationship between the total profits W and X of Company A and Company B is W =-30x+ 17700.

(2) The profit of Company A is: 180x+200 (40-x) = 8000-20x,

The profit of company B is:160 (70 ~ x)+150 (x ~10) = 9700 ~10x.

8000﹣20x﹣(9700﹣ 10x)=﹣ 1700﹣ 10x