Sentence: As the molten metal cools, it hardens and assumes the shape created by the mold's cavity .
Entities:
entity1: cavity
entity2: shape
Relation: Cause-Effect