A company's weekly profit can be modeled by the equation y=-0.5x^2+50x-300 where y is the profit (in dollars) and x is the number of items sold. What is their maximum weekly profit ?