Nifty factor finding doubt

I did not understand how the answer was reached here, I just took all quantities to be 1 and got the answer as A. Where am I going wrong?

What if they are not 1?