First, I am assuming the question should read, "how many MORE vertices ...".

Step one, should always be to draw a diagram, so you can see what is going on.

A rectangular prism, is a 3 dimensional shape created with two identical rectangles, joined together with straight lines - another name for this is a cuboid or 'box' .. The number of vertices on this shape is 8

A rectangular pyramid, is a 3 dimensional shape created with a rectangular shape at the base, and lines drawn to meet at one point which is vertical from the center point of the rectangle. The number of vertices here is 5.

So the answer to your question - a rectangular prism has 3 more vertices than a rectangular pyramid.

Step one, should always be to draw a diagram, so you can see what is going on.

A rectangular prism, is a 3 dimensional shape created with two identical rectangles, joined together with straight lines - another name for this is a cuboid or 'box' .. The number of vertices on this shape is 8

A rectangular pyramid, is a 3 dimensional shape created with a rectangular shape at the base, and lines drawn to meet at one point which is vertical from the center point of the rectangle. The number of vertices here is 5.

So the answer to your question - a rectangular prism has 3 more vertices than a rectangular pyramid.