by Juan, Francisco & Rodrigo
The most important diference is that in myths the main characters are gods, heroes or other supernatural creatures while in legends characters can be normal people.
From the word myth comes mythology. Mythology is a body of stories of one culture like Greek or Scandinavian ones.
This is the theory. People normally use both without distinction. People probably will tell you that Hercules is a legend and Robin Hood is a myth.