Generally optimization problems in pre-calculus algebra involve translating the problem into a quadratic equation, which graphs as a parabola, then finding the vertex of the parabola, which would be the minimum or maximum that you're looking for. Then when you get into calculus you solve general optimization problems, those which don't translate into quadratic equations, by finding and solving for derivatives. I assume you're in precalculus algebra so I'll explain how to do it that way first.
let n = number of necklaces sold, d = dollar increase
Cost = 6n
Selling price = 10 + d
Profit = selling price - cost = (10+d)n - 6n = 10n + dn -6n = 4n + dn = (4+d)n
Now we need to relate n and d. For n = 20, d = 0. For n = 18, d = 1. For n = 16, d = 2. In general, n = 20 - 2d. So now we can substitute Profit = (4+d)(20-2d) or 2(4+d)(10-d). Multiply this out and you get profit = -2d^2 +12d+40. This is, as I suspected it would be, a quadratic equation, and its graph is a parabola which opens downward and has a maximum at its vertex. Now to find the vertex. Remember the formula, that the vertex of a parabola is (-b/2a) along with its function value. So -b/2a would be -12/2x(-2) = 3. Remember d represented the price increase so that means you can increase the price by 3 dollars, to 13 dollars. To find the corresponding profit, plug d into the equation. Since I don't have a calculator handy I'll use the factored form of the equation, 2(4+d)(10-d) = 2x7x7 = 98 dollars. Good luck on your test! Remember, assuming your'e ion precalculus algebra, whenever they want you to optimise sometihng, that means, translate it into a quadratic equation, a parabola, and find the vertex.
If you are in calculus you'd still translate the problem into a quadratic equation but then you'd take the first derivative and set it to zero. The first derivative of this one is -4d+12 = 0 so you still get d = 3. But be careful when you do stuff like tihs, rememeer what your variable stood for. A common mistake is to figure out d, for example, and then say that he needs to sell 3 necklaces, mistkaing d for n. That's why I use variable names that stand for what I'm looking for, rather than generic stuff like x and y.