Let the number of cupcakes be represented by = y
Let the number of donuts be represented by = x
She can purchase at most 30 items in total so equation becomes:
.... (1)
She also wants the number of cupcakes purchased to be greater than or equal to the square of 2 more than the number of donuts. Hence, equation becomes:
....(2)
The intersection point where value of 'x' is negative is not valid.
Hence, points 3 and 27 is the answer. (rounding off 3.179 and 26.821)
Please find attached the graph.