Combine two Arduino projects into one PCB with the Arduino codes combined.

First I need to combine the two projects before I combine the code. How do I combine the project? Not code.