Notice that the top and bottom shape is a pentagon.
Recall that a pentagon has 5 edges
Therefore, the total number of edges in the top and bottom is:

Notice that 5 edges connects the top and bottom.
Therefore, the total number of edges is given by:

Therefore, the correct answer is choice D:
15