So q is really the quantity sold per week. The product pq will give you the total revenue for price, p. To maximize the revenue, differentiate pq with respect to to q and set it equal to 0.

You should get in general . Is this what you were doing?

Once you solve for that the way to find the weekly profit is pq-c.