Need help with my code my arduino code to turn on and off LED and also delay

int led = 13; // the pin the LED is connected to
void setup() {
pinMode(led, OUTPUT); // Declare the LED as an output
}
void loop() {
digitalWrite(led, HIGH); // Turn the LED on
delay(1000);// Wait for 1000 milliseconds (1 second)
digitalWrite(led, LOW); // Turn the LED off
delay(1000);// Keep it off
}
int outPin = 8; // digital pin 8

void setup() {
pinMode(outPin, OUTPUT); // sets the digital pin as output
}

void loop() {
digitalWrite(outPin, HIGH); // sets the pin on
delayMicroseconds(50); // pauses for 50 microseconds
digitalWrite(outPin, LOW); // sets the pin off
delayMicroseconds(50); // pauses for 50 microseconds
}

It’s giving me error says
Redifinition of void setup ()

You can have only one setup() and one loop() function in an Arduino sketch.

Read the forum guidelines to see how to properly post code and some hints on how to get the most from this forum.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

Here are the 2 codes combined. Does this do what you want? If not tell us what should happen.
The code is posted properly and formatted with the autoformat tool.

int led = 13; // the pin the LED is connected to
int outPin = 8; // digital pin 8

void setup()
{
   pinMode(led, OUTPUT); // Declare the LED as an output
   pinMode(outPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
   digitalWrite(led, HIGH); // Turn the LED on
   delay(1000);// Wait for 1000 milliseconds (1 second)
   digitalWrite(led, LOW); // Turn the LED off
   delay(1000);// Keep it off

   digitalWrite(outPin, HIGH); // sets the pin on
   delayMicroseconds(50); // pauses for 50 microseconds
   digitalWrite(outPin, LOW); // sets the pin off
   delayMicroseconds(50); // pauses for 50 microseconds
}

It is better to use millis() for timing as the delay function blocks.
Non-blocking timing tutorials:
Blink without delay().
Beginner's guide to millis().
Several things at a time.

Each Arduino program might have only one void setup() and one void loop() functions. Looks like you´re trying to do a 2 in 1 program and that´s why your compiler is complaining.

Keep this:

int led = 13; // the pin the LED is connected to
void setup() {
pinMode(led, OUTPUT); // Declare the LED as an output
}
void loop() {
digitalWrite(led, HIGH); // Turn the LED on
delay(1000);// Wait for 1000 milliseconds (1 second)
digitalWrite(led, LOW); // Turn the LED off
delay(1000);// Keep it off
}

OR

This

int outPin = 8; // digital pin 8

void setup() {
pinMode(outPin, OUTPUT); // sets the digital pin as output
}

void loop() {
digitalWrite(outPin, HIGH); // sets the pin on
delayMicroseconds(50); // pauses for 50 microseconds
digitalWrite(outPin, LOW); // sets the pin off
delayMicroseconds(50); // pauses for 50 microseconds
}

Be aware that each one uses the LED in a different pin. (pin 13 is the LED Builtin in Arduino UNO)

A third option is @groundFungus code, which has 2 LEDs working together :stuck_out_tongue_winking_eye:

Thank you