Three cubes of a metal whose edges are in ratio 3:4:5 are melted

Three cubes of a metal whose edges are in ratio 3:4:5 are melted and converted into a single cube whose diagonal is 12 root 3 cm find the edges of the three cubes.

image