Can i pass the data from arduino mega to arduino Yun ?

And the project is already running with arduino mega board

That is absolutely no reason to use two processors. Put it all onto one, you are just making it a lot more complex than you need to by having two processors..

Do you have links

What is wrong with googling arduino xxx where xxx is what you are looking for.
I did this and came up with these.

http://www.ladyada.net/learn/arduino/lesson4.html