A stack is initially empty, then the following commands are performed: push 5, push 7, pop, push 10, push 5, pop , which of the following is the correct stack after those commands (assume the top of the stack is on the left)?

a. 10 7 8 5 9
b. 10 8 5
c. 8 5 9
d. 8 5