Alright, lets get started.
The length of the box = 30 inches
constant k = 24
Volume 

Let 
 are constant, then

volume of a box(V) varies directly with its length(l).
Means 

Putting the value of k and l in above equation
Volume V = 24 * 30
V = 720 inches cube : Answer
Hope it will help :)