An arithmetic sequence has u; =7 and Sy = 17. a Find the common difference of the sequence. b Find n such that S,, = 242.