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

any kind soul can help me asap??

delay(2000);   // Wait about 3 seconds

This is ironic. 8)