Please take a look at this samples, are they metonymy or not ? If not, please explain.
> The red car overtook blue car. (car instead of person) - Somebody in red car overtook blue car.
> Hammer hit Joe. (tool instead of person) - Kate hit Joe with hammer.
What are rules, if any that tool can replace person in the sentence, the second sentence seems to be incorrect.
> Joe smeared the bread with a knife.
*Knife smeared the bread.

Student or Learner