Answer:
x=6
Step-by-step explanation:
You are correct. x does equal 6
Examples of this are:
2 and 
2 and 
4 and 
I'm guessing you have a work sheet going along with this which has actual images of containers. I've attached an example - if you can post the actual work sheet you're referring to I can edit this answer to correctly reflect your specific question.
The carpenter can cut six full sized pieces of board.
I am assuming there are more than one juice box in a package so if the amount of juice boxes in each package is X and there are four packages 4X.
So 4X - 2= Answer
If we make it so that there are 6 juice boxes in each package and use the same method this is what we'll get:
24 - 2= 22
22 would be the juice boxes left over.
I hope this answers your question, if it doesn't use the same method with the number of juice boxes in a package.
Ok this is a linear equation that is descending and is in slope intercept form