A child's set of blocks consists of 2 red, 4 blue, and 5 yellow cubes. The blocks can be distinguished only by color. If the child lines up the blocks in a row at random, calculate the following probabilities:
(i) Red blocks appear at both ends.
(ii) All yellow blocks are adjacent.