199 is the answer because the equation you use is an=a1+d(n-1). Where an (the n is actually supposed to be smaller than the a) is the nth term (a40), a1 (1 smaller than a) is the first term (4), d is the difference (5), and n is the number of the term you're looking for (40)