Fight slimes and get at least 10 coins. Go to the alchemy shop and buy the book on Alchemy. You can then use it to craft magic potions that restore your magic.