The fourth term of an AP is 37 and the 6th term is 12 more than the fourth term. Find the first and seventh term