がついていた

had … on it

→ が
phrase Rare #41,009
had … on it Describes something being attached to, stuck to, or left on a surface; the exact sense depends on what the thing is.
JA: シャツにペンキがついていた。
EN: There was paint on the shirt.

トムの長靴には、泥がついていた。

There was mud on Tom’s rubber boots.

トムのブーツには、泥がついていた。

Tom's boots were covered in mud.

そして髪には何かがついていた。

And there was something in her hair.

トムのユニフォームには血がついていた。

There was blood on Tom’s uniform.