Hi,
Your first 3 sheets in Sheet1, Sheet2, Sheet3 and result in Sheet4.
With the data starting in cell A1 of all sheets,
=SUMIFS(Sheet1!$B$2:$B$8,Sheet1!$E$2:$E$8,Sheet4!A2,Sheet1!$F$2:$F$8,1)
+SUMIFS(Sheet2!$B$2:$B$4,Sheet2!$E$2:$E$4,Sheet4!A2,Sheet2!$F$2:$F$4,1)...