A cube and cuboid have same volume. The dimensions of the cuboid are in the ratio 1:2:4

A cube and cuboid have same volume. The dimensions of the cuboid are in the ratio 1:2:4. If the difference between cost of polishing cube and cuboid at the rate of Rs.5 per meter square is Rs. 80. Find their volumes.