How do you merge two sketches together... RESPOND QUICKLY PLEASE!

There is magic code that combines two independent sketches and magically figures out what you want the result to be.

There is? Can you post a link, please? I need it yesterday. 8)