the sum of the first n terms of an arithmetic sequence is 242. If the first term is 12 and the last term is 42, find the value of n

badly need this rn ​