First, take into account that the pressure exerted by a force on a certain area, is given by:

In this case, the force F is the weight of the box, that is:
F = W = m*g
where m is the mass of the box and g the acceleration gravitational constant 9.8m/s^2.
The area where the force due to the weight is applied is given by:

where a is the length of the side of the box. To find the value of a, you can use the information about the volume of the box, as follow:
![\begin{gathered} V=a^3 \\ a=\sqrt[3]{V} \\ a=\sqrt[3]{8cm^3} \\ a=2cm \end{gathered}](https://img.qammunity.org/2023/formulas/physics/college/1h5s2wu1dwu3xodtsn367d6zmn47un4gtw.png)
Now, you can calculate the area A (but in this case we express a in meters by convenience):

Next, in the expression for the pressure P=F/A, replace F by m*g and solve for m:

All parameters A, P and g are known parameters, then, you obtain:
