Answer:
Their volume is still different. Even they have the same size and some similarities, the volume is still different.
As to Prism, it's formula for it's volume is length x width x height, the formula for pyramid is the same but you'll divide it to 3. It's the same goes to cylinder and cone, πr²h is for cylinder and the cone is same with it but you must divide it to 3.