Substituting for q into will give her a quadratic function that she can use to find the vertex of the parabola, which she can use to find the optimal selling price.