Let x = number of shirts and y = number of pants.
Profit on each shirt = ₹40
Profit on each pant = ₹30
The constraints are:
- Total items: x+y≤20
- Minimum shirts: x≥2
- Pants at least 4 times shirts: y≥4x
Goal: Maximize profit P=40x+30y
Since y≥4x and x+y≤20:
x+4x≤20
5x≤20
x≤4
Combined with x≥2, the possible values are x∈{2,3,4}
For x=2:
Minimum pants: y≥4(2)=8
Maximum pants: y≤20−2=18
Best choice: y=18
Profit =40(2)+30(18)
=80+540
=620
For x=3:
Minimum pants: y≥4(3)=12
Maximum pants: y≤20−3=17
Best choice: y=17
Profit =40(3)+30(17)
=120+510
=630
For x=4:
Minimum pants: y≥4(4)=16
Maximum pants: y≤20−4=16
Best choice: y=16
Profit =40(4)+30(16)
=160+480
=640
The maximum profit is ₹640.