The value of q is 12 yards.
To find the value of q, let's use the formula for the surface area of a cube:
where s is the length of a side of the cube.
Given that the surface area is 864 square yards, we can set up an equation:
Now, solve for s:
Since q represents the length of a side of the cube,
.
Therefore, the value of q is 12 yards.