Can someone silplify this simple code?

Generally when you start adding numbers to your variable names you should consider using an array instead. For example:

int GreenSwitch[] = {50, 51, 52};

For more information see:
https://www.arduino.cc/en/Reference/Array