Problem: Do "piece of iron" and "it" point to the same thing in the following sentence?

Then he took a piece of iron the shape of the horse horse's foot , and clapped *it* on, and drove some nails through the shoe quite into its hoof, so that the shoe was firmly on
****
A: yes


Problem: Do "Jim" and "he" point to the same thing in the following sentence?

I saw Jim yelling at some guy in a military uniform with a huge red beard. I don't know why *he* was, but he looked very unhappy.
****
A: yes


Problem: Do "shape" and "it" point to the same thing in the following sentence?

Then he took a piece of iron the shape of the horse horse's foot , and clapped *it* on, and drove some nails through the shoe quite into its hoof, so that the shoe was firmly on
****
A: no


Problem: Do "Mark" and "He" point to the same thing in the following sentence?

Mark told Pete many lies about himself, which Pete included in his book. *He* should have been more skeptical.
****
A:
no