How does the sentence end?

Tabatha wanted to be a medical doctor and got the right books but left out the materials because the
books were on sale.