The sum of the first five terms of an AP and the sum of the first seven terms of the same AP is 167. If the sum of the first ten terms of this AP is 235