Let the factory manufacture x screws of type A and y screws of type B on each day. Therefore, x ≥ 0 and y ≥ 0 The given information can be compiled in a table as follows.

The profit on a package of screws A is Rs 7 and on the package of screws B is Rs 10. Therefore, the constraints are
6x+6y≤240
6x+3y≤240
Total profit, Z = 7x + 10y
The mathematical formulation of the given problem is Maximize Z = 7x + 10y … (1) subject to the constraints,
4x+6y≤240 .......(2)
6x+3y≤240 ........(3)
x,y≥0 ...... ...........(4)
The feasible region determined by the system of constraints is

The corner points are A (40, 0), B (30, 20), and C (0, 40).
The values of Z at these corner points are as follows.

The maximum value of Z is 410 at (30, 20).
Thus, the factory should produce 30 packages of screws A and 20 packages of screws B to get the maximum profit of Rs 410.