The demand and supply equations for a certain item are given by

D = -5p + 40
s = -p^2+30p-8

Find the equilibrium price.

Wouldn't you set demand equal to supply, and solve for P? I will be happy to critique your work.