B is correct. Substitute the week number for w in the function. Follow order of operations and you should get you N, the number of fruit flies for that week. For instance week 2:
N= 2(5)^2-1
N=2(5)^1
N=2(5)
N= 10
N= 10 corresponds to the table
The dependent variable is the profit because that is what you're measuring
The answer is in the picture below