The number of terms in an AP is 10. The nth term of this AP is 50 and the common difference is 2. Find the first term.