The demand for beans in bags is given by the function Q – 36 +…