We have a piecewise function.
Therefore, to find the function, we must evaluate each domain separately.
We have then:
For
:
The function for this domain is:

For
:
The function for this domain is:

Where,

Substituting:

For
:
The function for this domain is:
Add them all up to get it
110 (goal) - 50 (base pay) = 60 (pay from sales only)
60 (total pay from sales) / 3 (cost per individual sale) = 20 (qty of sales)
Answer:
x = 9
this is a ratio problem. You can see that 12/6 = 2, so you can also take 18/2 to get 9.