Answer:
Toothpick
Step-by-step explanation:
A toothpick is made out of a non-ferrous material such as wood, plastic, glass, aluminum etc.
Both the nail and the safety pin will be attracted to the magnet due to being made from ferrous materials such as iron and steel.
Hope this helps!