I tried unlocking the bootloader (which I apparently succeeded at.) I then tried rooting it, which I failed at. I just want to reset the phone back to factory settings but when I try to do a factory reset it will reboot into the (and I don't know if this is the right name for it or not) bootloader screen, where it says my phone is relocked and gives me the options "bootloader", "reboot", "reboot bootloader" and "power down"
What do I do? If I reboot the phone will restart but nothing has been erased.