Let the number of fans bought be and sewing machines bought be .
According to the question,
Maximize
The feasible region determined by is given by
The corner points of the feasible region are . The value of at corner points is
The maximum value of is 392 at point .
The dealer must buy 8 fans and 12 sewing machines to make the maximum profit.