The hammer hit the bullet, so it stopped.

Who is "it" in this prior sentence?
The hammer
The ball hit the window and Bill repaired it.

Who is "it" in this prior sentence?
the window
The product fair showed Office 365, and it had a lot of attendees.

Who is "it" in this prior sentence?

The product fair