The first three terms of a sequence are 3, y + 1, 27. Determine the positive value of y so that the sequence is:
a) An arithmetic sequence
b) A geometric sequence