Answer : Cone Z and Cylinder Y
Prism M and pyramid N have the same base area and the same height.
Volume of prism = base area * height
Volume of pyramid =
* base area * height
cone Z has the same base area as cylinder Y, but it's height is three times the height of cylinder Y
So volume of prism and pyramid cannot be same.
Cylinder P and prism Q have the same height and the same base perimeter.
Volume of cylinder =base area * height= 
Volume of prism = base area * height
The base area is not same as base perimeter so the volume of cylinder and prism cannot be same.
cone Z has the same base area as cylinder Y, but it's height is three times the height of cylinder Y
Volume of cylinder = base area * height = 
Volume of cone =
* base area * height =
* height
Given height of cone is three times the height of cylinder Y
So volume of cone becomes =
*3* h=
* h
Hence Volume of cone Z = Volume of cylinder Y