How to combine program?? can someone help me with it

i tried it combine but it only works 1 step by 1 step i dunno how to do the loop together

all_together.ino (11 KB)