You can use a book to understand that you shouldn't end a sentence with a preposition.