Three cubes with sides in the ratio 3:4:5 are melted to form a single cube whose diagonal is 12√3cm, the sides of the cubes are: