Is my logic/programming correct?

/*
10-Way Audio Relay Switch

The Parts:
*10 - Simple LED Momentary switches (button)
*1 - Adrduino Mega 2560
*2 - SainSmart 16-Channel Relay Modules (101-70-103)

OBJECTIVE:
- One stereo input (L+, R+, G-)
- 10 Independent Stereo Isolated outputs

EG; When b1 is pressed, pinOut 22 & 32 only, 
 if b6 is pressed, then pinOut 27 & 37 only,
 etc....
 
Pins 22-41 Activate Relays 1-20

*/
void setup()
{
 // Configure Buttons as Inputs
 pinMode(2, INPUT);
 pinMode(3, INPUT);
 pinMode(4, INPUT);
 pinMode(5, INPUT);
 pinMode(6, INPUT);
 pinMode(7, INPUT);
 pinMode(8, INPUT);
 pinMode(9, INPUT);
 pinMode(10, INPUT);
 pinMode(11, INPUT);
 
 // Configure Relay pins as Outputs
 pinMode(22, OUTPUT);
 pinMode(23, OUTPUT);
 pinMode(24, OUTPUT);
 pinMode(25, OUTPUT);
 pinMode(26, OUTPUT);
 pinMode(27, OUTPUT);
 pinMode(28, OUTPUT);
 pinMode(29, OUTPUT);
 pinMode(30, OUTPUT);
 pinMode(31, OUTPUT);
 pinMode(32, OUTPUT);
 pinMode(33, OUTPUT);
 pinMode(34, OUTPUT);
 pinMode(35, OUTPUT);
 pinMode(36, OUTPUT);
 pinMode(37, OUTPUT);
 pinMode(38, OUTPUT);
 pinMode(39, OUTPUT);
 pinMode(40, OUTPUT);
 pinMode(41, OUTPUT);
}

// Define variables to hold values of buttons
int b1, b2, b3, b4, b5, b6, b7, b8, b9, b10;

void loop()
{
 // Read buttons (HIGH = button pushed, LOW = button not pushed)
 b1 = digitalRead(2);
 b2 = digitalRead(3);
 b3 = digitalRead(4);
 b4 = digitalRead(5);
 b5 = digitalRead(6);
 b6 = digitalRead(7);
 b7 = digitalRead(8);
 b8 = digitalRead(9);
 b9 = digitalRead(10);
 b10 = digitalRead(11);
 

 if (b1)
   digitalWrite(22, 32);
 else if (b2)
   digitalWrite(23, 33);
 else if (b3)
   digitalWrite(24, 34);
 else if (b4)
   digitalWrite(25, 35);
 else if (b5)
   digitalWrite(26, 36);
 else if (b6)
   digitalWrite(27, 37);
 else if (b7)
   digitalWrite(28, 38);
 else if (b8)
   digitalWrite(29, 39);
 else if (b9)
   digitalWrite(30, 40);
 else if (b10)
   digitalWrite(31, 41);
}

I see a smiley with sunglasses in your code... use code tags please

Usually code like these are easier done with arrays and loops.

You don't want to handle two buttons pressed at same time or more?

Have you read the documentation for digitalWrite()? What does it say the second parameter is? Do you think this is what you do??

Ever heard about bouncing ?

What part of your code would reset a pin once you release a button (or press 2 of them)?

digitalWrite(22, 32);What is this supposed to do ?
I think that I can see, but as it is it tries to write the value 32 to pin 22, but I assume that is not what you want.

It looks like you need to check out the syntax of digitalWrite().

digitalWrite(22, HIGH);

Thank you both for the input.

so I changed the digitalWrite to be (pin, HIGH),
however, how do I get b1 to write to 2 pins at the same time?
Would this be how:

 if (b1)
    digitalWrite(22, HIGH);
    digitalWrite(32, HIGH);
  else if (b2)

Sorry for the newbie questions as I'm completely new to this.

if (b1 == HIGH ) {
    digitalWrite(22, HIGH);
    digitalWrite(32, HIGH);
}  else if (b2 == HIGH) {

} ....

but again see questions above for example, in your logic what happens if
• I press b1, release b1, press b2?
• I press b1 and b2 together?