having trouble programming the solenoids

While you are in a delay() loop you can't do anything else. You could put the switching of the solenoids in the loop() function. Measure time with millis(), when you are at the right time do something, switch solenoid on or off. Depending on what you want exactly you could use a switch/case statement. So, look up in the reference: millis and switch and see if it is of any use.