to find x, the sum upto n terms is Sn, we need to make use of AP.
the first term 'a' = 40, last term Tn = 60, common difference'd' = 2
hence, number of terms 'n' = ?
Pluging in the formula Tn = a + (n - 1)d, we get,
60 = 40 + 2(n - 1)
==> 20 = 2(n - 1)
==> n - 1 = 10
==> n = 11
there are 11 terms between 40 and 60.
Now, finding the sum of these 11 terms,
Sn = (n/2)[2a + (n - 1)d]
Sn = (11/2)[2*40 +(11-1)*2]
Sn = (11/2)[80 + 20]
Sn = 50 * 11 = 550
So, x = 550
y is the number of even numbers between 40 and 60, which was found to be 'n' = 11.
Hence, x + y = 550 + 11 = 561, which is option D