In an AP, it is given that S5+S7=167 and S10=235, then find the AP, where Sn denotes the sum of its first n terms.