#define red1      13
#define yellow1   12
#define green1    11
#define red2      10
#define yellow2   9
#define green2    8

void setup() {
  pinMode(red1, OUTPUT);
  pinMode(yellow1, OUTPUT);
  pinMode(green1, OUTPUT);
  pinMode(red2, OUTPUT);
  pinMode(yellow2, OUTPUT);
  pinMode(green2, OUTPUT);
}

void loop() {
  digitalWrite(red1, HIGH);
  digitalWrite(red2, HIGH);
  delay(2000);
  digitalWrite(green1, HIGH);
  digitalWrite(red1, LOW);
  delay(5000);
  for(int x=0; x<5; x++){
    digitalWrite(green1, HIGH);
    delay(200);
    digitalWrite(green1, LOW);
    delay(200);
  }
  digitalWrite(red1, LOW);
  digitalWrite(yellow1, HIGH);  
  digitalWrite(green2, HIGH);
  delay(5000);
  for(int x=0; x<5; x++){
    digitalWrite(green2, HIGH);
    delay(200);
    digitalWrite(green2, LOW);
    delay(200);
  }

  delay(2000);
  digitalWrite(yellow1, LOW);
  digitalWrite(red1, HIGH);
  delay(2000);

}