Are you really having difficulty reasoning these out?
. . .A box contains 3 marbles: 1 red, 1 green and 1 blue.
Consider an experiment that consists of taking one marble from the box,
replacing it, and then drawing a second marble from the box.
(a) Describe the sample space.
. . .(b) Describe the sample space when the first marble is not replaced.