Default Need Help!

So my friend decided to try to update my tablet and i was on Hariybean 2.31 and he installed twrp that wasn't compatible and now i cannot mount anything in the recovery and it only boots to the recovery i can still get adb from the remove menu and i can adb restart bootloader and access fast boot but every time i try to flsh anything it locks up fastboot says that i am on 10.6.1.27. anyone with any knoloege please help.