length = 6

width = 12

height = 24

volume = 6 * 12 * 24

volume = 1728

Since the cube and the rectangular prism has same volume, finding the volume of one object is enough. From this we can find the side of the cube and then the volume.

volume = 1728

side = pow( 1728 ,(1/3))

side = 12

surface area = 6 * 12 * 12

surface area = 864

where,

LSA = lateral surface area

TSA = total surface area

p = perimeter

h = height

V = volume

l = length

w = width

d = diagonal