If first term of an AP is 5, last term is 45 and the sum of the terms is 400, then the number of terms is in the AP is ___.
The first term of an AP is 5, last term is 45 and the sum is 400. Find the number of terms and the common difference.