Default [Q] Restore to Stock

I currently have a custom ROM installed but it is buggy, so how do I put my P5210 back to stock? I have a backup of my previous ROM that I did in TWRP