To recover from penguin update, new, unique and high quality content in the webpage.
For Panda updates check your link profile. Remove the spammy and the links that you don't want to be there and get links from niche and high quality sites.
The best way is to hire an agency to get the work done
there are multiple way to recover panda and penguin. you should follow this techniques
1. disavow link
2. remove duplicate content from website
3. remove all black hat techniques
you should consult SEO Expert for recover panda and penguin.