Almost none. Perhaps in 1, B had a need/desire/intention to go to the bookstore, and A just came along, while in 2, A is the one who had the need while B just came along.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.