A trader realizes 10x – x\(^2\) naira profit from the sale of x bags on…