Greetings from Brasil...
Given the function of this factory (P(X)), we want to know the profit (P) for a box of cookie, that is, when X = 1
P(X) = 4X - 2
for 1 box of cookies, X = 1, so
P(1) = 4.1 - 2
P(1) = 4 - 2
P(1) = 2
So, for 1 box of cookie will cost $2