How to write formula for entering a value of a cell if values of 3 cells are true.

For example,
If A2:A10 = X,
and
If B3:B15 = Y,
and
If C3:C25 = Z,

Then
Enter the sum of the values of D10:D25

Is this possible?
Thank you