The independent variable is the amount of square feet that needs painting, because that amount does not change.
The dependent variable is the amount of paint needing to be purchased, because it depends on the amount of square feet that needs painting.
The answer is A