Please help with my Conveyor belt Color sensor project (TCS 3200)

Definitely was not my intention, i didn't mean to portray my project more valuable than others, just extremely important to me which is why i asked for help as soon as possible . but what you are asking me to show you (an attempt of the combined code) I'm not sure how to even get to that point which is why I'm here. If you can assist i would greatly appreciate it.