const int Merah1 = 6;
const int Kuning1 = 7;
const int Hijau1 = 8;
const int Merah2 = 9;
const int Kuning2 = 10;
const int Hijau2 = 11;

void setup() {
  pinMode(Merah1, OUTPUT);
  pinMode(Kuning1, OUTPUT);
  pinMode(Hijau1, OUTPUT);
  pinMode(Merah2, OUTPUT);
  pinMode(Kuning2, OUTPUT);
  pinMode(Hijau2, OUTPUT);
}

void loop() {
  //kondisi 1
  digitalWrite(Merah1, HIGH);
  digitalWrite(Hijau2, HIGH);
  delay(20000);
  digitalWrite(Merah1, LOW);
  digitalWrite(Hijau2, LOW);
  //kondisi 2
  digitalWrite(Kuning1, HIGH);
  digitalWrite(Kuning2, HIGH);
  delay(10000);
  digitalWrite(Kuning1, LOW);
  digitalWrite(Kuning2, LOW);
  //kondisi 3
  digitalWrite(Merah2, HIGH);
  digitalWrite(Hijau1, HIGH);
  delay(20000);
  digitalWrite(Merah2, LOW);
  digitalWrite(Hijau1, LOW);
  //kondisi 4
  digitalWrite(Kuning1, HIGH);
  digitalWrite(Kuning2, HIGH);
  delay(10000);
  digitalWrite(Kuning1, LOW);
  digitalWrite(Kuning2, LOW); 

  delay(1000);



}