The length, breadth and height of a cuboid are in the ratio 6:5:3. If the total surface area is 504 cm2, find its dimension. Also find the volume of the cuboid.