If we consider 942 as the last term, then the number of terms of multiples of 2 would be:
942 / 2=471 terms - which counts 2 as the first term and 942 as the last term:
[F + L] / 2 x N =, where F=First term, L=Last term, N=Number of terms
[2 + 942] / 2 x 471=222,312
If we consider 940 as the last term, then the number of terms of multiples of 5 would be:
940 / 5 =188 terms.
[5 + 940] / 2 x 188 =88,830