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

I understand what you are telling me to do, but what would the code you are telling me to add like like in my code as a whole?
I want to add the second code into the first code