The function we have is:

Where A is the total of string beans, and n is the number of pounds bought.
The domain of a function is the interval of possible values for the independent variable. In this case the independent variable is n (the number of pounds).
Since we are told that the supermarket sells up to 4 pounds, that is the limit for n, thus n can take values from 0 (0 pound bought) to 4 (4 pounds bought).
The domain is:

Answer: Domain = [0,4]