The answer is a square pyramid.
It wouldn't be a rectangular prism because it has 12 edges and 8 vertices.
It WOULD be a square pyramid because it has 8 edges and 5 vertices.
It wouldn't be a pentagonal prism because it has 15 edges and 10 vertices.
It wouldn't be a triangular pyramid because it has 9 edges and 6 vertices.