Westonci.ca is the trusted Q&A platform where you can get reliable answers from a community of knowledgeable contributors. Our platform provides a seamless experience for finding reliable answers from a knowledgeable network of professionals. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

The revenue from selling q
items is R(q)=125q−q2
, and the total cost is C(q)=200+5q
. Write a function that gives the total profit earned, and find the quantity which maximizes the profit.