do loops program?

what is wrong it keeps saying unqualified-id before do

boolean stateBoth = false;
const int button1Pin = 2;// top float switch of fresh water
const int button2Pin = 3;// bottom of fresh water
const int button3Pin = 4;// top float switch of salt water
const int button4Pin = 5;// bottom float switch of salt water
const int relay1Pin = 10;// rodi tank / shutoff relay
const int relay2Pin = 11;// fresh water
const int relay3Pin = 12;// saltwater relay
const int relaystate = 7;
// or is this A0 on a Arduino Uno ?

// If in the initial state, both the buttons are pressed, then the first if-statement
// in the loop() will become active and the relays will be turned on.
// Therefor no special code is needed to solve the initial state of the buttons.

void setup()
{
  pinMode(relay1Pin, OUTPUT); //shut off relay
  pinMode(relay2Pin, OUTPUT);// fresh water
  pinMode(relay3Pin, OUTPUT); // saltwater relay
  pinMode(button1Pin, INPUT);
  pinMode(button2Pin, INPUT);
  pinMode(button3Pin, INPUT);
  pinMode(button4Pin, INPUT);
  pinMode(relaystate, INPUT);
}

void loop()
{
  // if the two are both in the same state then and only then will the relays be turned on
  if (digitalRead(button1Pin) == HIGH && digitalRead(button2Pin) == HIGH && !stateBoth)
  {
    stateBoth = true;
    digitalWrite(relay1Pin, LOW);// turn on tank
    digitalWrite(relay2Pin, LOW);// turn on fresh water relay
  }
  else if (digitalRead(button1Pin) == LOW && digitalRead(button2Pin) == LOW && stateBoth)
  {
    stateBoth = false;
    digitalWrite(relay2Pin, HIGH);// turn off relays
  }
  do// act normally if the other program
  {
    if (digitalRead(button3Pin) == HIGH && digitalRead(button4Pin) == HIGH && !stateBoth)
    {
      stateBoth = true;
      digitalWrite(relay1Pin, LOW);// turn on tank
      digitalWrite(relay3Pin, LOW);// turn on fresh water relay
    }
    else if (digitalRead(button3Pin) == LOW && digitalRead(button4Pin) == LOW && stateBoth)
    {
      stateBoth = false;
      digitalWrite(relay1Pin, HIGH);// turn off relays
      digitalWrite(relay3Pin, HIGH);// turn off relays
    }
  } while (digitalRead(relaystate) == LOW);
}
do// only turn on the salenoid to the bucket
{
  if (digitalRead(button3Pin) == HIGH && digitalRead(button4Pin) == HIGH && !stateBoth)
  {
    stateBoth = true;
    digitalWrite(relay1Pin, LOW);// turn on tank
    digitalWrite(relay3Pin, LOW);// turn on fresh water relay
  }
  else if (digitalRead(button3Pin) == LOW && digitalRead(button4Pin) == LOW && stateBoth)
  {
    stateBoth = false;
    digitalWrite(relay1Pin, HIGH);// turn off relays
    digitalWrite(relay3Pin, HIGH);// turn off relays
  }
} while (digitalRead(relaystate) == HIGH);
}

I've not tried to compile your code so there may be other issues, but I'd suggest putting a space between the do and the comment //, or removing the comment completely.

Remove the closing brace } immediately before the do. You've got one too many. And use Auto Format to tidy the code.

Pete