Suppose this is your rectangular prism:
Suppose length is given as 8 mm, width given as 4 mm.
We need to find the height.
Let's look at the formula for surface area of rectangular prism:

Where
l is length
w is width
h is height
Let's put the given dimensions in the formula:

We are given SA = 352, we substitute, do algebra, and solve for h:

So the other dimension is 12 mm