PinMode set up

The best way to do it is to define the pins in an array, then use a for loop to iterate over the array and call pinMode() from inside that for loop.

You can learn more from these reference pages:

After reading those, give it a try and if you get stuck post the code from your attempt and a detailed description of the problem you had here and we'll help you out.