Please check if you have copied the question correctly. As I understand you are given the first term. Let first term = a

n th trm = (n+2)th term - k ( suppose) Then it is quite simple and you get

a + ( n-1) d = a + nd - k That gives d, common difference d = k Now you can work out the solution