Emma is organizing the books on her bookshelf. She had a total of 50 books. After she donated 17 books to the local library, how many books does she have left?