I'm not sure what you're doing with the symbols A and B, since they are both nothing more than the names of the two given points.
For example, you wrote |AB|.
Are you trying to multiply two points together? I don't understand.
What I did was start by taking a bird's-eye view looking down on the xy-plane from above.
(I'm totally ignoring the z-dimension, for now.)
From the given information, two opposite corners of the bottom of the box are located at the following.
(3, 3, z)
(-1, 6, z)
Think of a light shining down on the box from directly above. It casts a rectangular-shaped shadow onto the xy-plane. This rectangular-shaped shadow has the same measurements as the bottom of the box.
If we were to plot these two opposite corners of the rectangle on the xy-plane at (3, 3, 0) and (-1, 6, 0), then it would be clear that the remaining two corners are located at the following.
(3, -1, 0)
(3, 6, 0)
This tells us that the box's bottom has corners at the following.
(3, 3, z)
(3, -1, z)
(-1, 6, z)
(3, 6, z)
Now we consider the levels of the box's top and bottom above the xy-plane. We know that the bottom of the box is 4 units above the xy-plane. We know that the top of the box is 7 units above the xy-plane.
Replace the z-coordinates in the four sets of ordered triples above with both 4 and 7, and you'll have the coordinates of all eight vertices.
MY EDITS: Corrected misstatements about box having square-shaped bottom