for two commodities A and B, MA and MB are the respective marginal utilities while…