It seems like your question comes down to: "what is the number of ways of having the roses adjacent and also the azaleas adjacent?" (since you agree with the book on the other components)
Label the plants as R1, R2, R3, R4, A1, A2, A3, X, Y, Z. (The Rj's stand for roses and Aj's for azaleas.)...