(i) For x2+11x+28 we need two numbers with sum 11 and product 28: 4 and 7.
x+4x2+11x+28=x+4(x+4)(x+7)=x+7
We may cancel x+4 because it is a number of notebooks, so it is not 0. One notebook at Shop A costs ₹(x+7).
(ii) For x2+2x−15 we need sum 2 and product −15: 5 and −3.
x−3x2+2x−15=x−3(x+5)(x−3)=x+5
Here x−3=0 because x>3. One notebook at Shop B costs ₹(x+5).
(iii) The difference is (x+7)−(x+5)=2, which does not depend on x. So a notebook at Shop A always costs ₹2 more.
Check with x=20: Shop A sells 24 notebooks for 400+220+28=648 rupees, that is ₹27 each. Shop B sells 17 notebooks for 400+40−15=425 rupees, that is ₹25 each. The difference is ₹2.