The better of the two is b. This is a pet peeve of mine. Many English teachers and, worse yet, non-English teachers (history teachers) insist that we should not end sentences with prepositions.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.