The total number of pencils is 6 x 144 as one gross is equivalent to 144 items. So, the number of pencils is 864. If the rate of use of the pencils is 24 per week, we can find the number of weeks they would last dividing 864 by 24. Doing so, we have: 864÷24=36.
The answer is 36 weeks.