There is a famous sentence that ends with six different prepositions. It can teach you quite a lot about the different ways that prepositions can be used at the end of a sentence. Although the sentence seems very, very strange to a nonnative, it sounds quite natural to most native speakers.
It's bedtime, and a father and son are trying to decide which book to read.
Father: "Which book should I read?"
Son: : "I don't care. They're all fine."
Father: "OK, what about this book?"
*****Son: "Ugh, no. What did you bring that book that I don't like to be read to out of from up for?""*****
OK. What are all of those prepositions doing? I'll let you think for a second, then post the answer in a comment to this answer.