Copper Snake - Miracle Squared

Hashem told Moshe to make a snake and place it on a staff. How did Moshe know to make it out of copper?

Usually looking at that which afflicted a person would make them worse, here, looking at the snake healed them.