Hi Marg,
SUM is not a good choice of function for this task. You are looking for a Count of the entries meeting two of three conditions.
The month number in column B of Table 2 must match the number in 'this row' of column A (in Table 1)
AND the text in column C of Table 2 must be "Apples" OR "Bananas".
Translating that into a formula for cell B2 of Table 1:
COUNTIFS(Table 2::B,A2,Table 2::C,"Apples")+COUNTIFS(Table 2::B,A2,Table 2::C,"Bananas")

Note that I did not include the absolute reference operator, $, in the references to cell A2.
The purpose of this operator is to keep the cell or range pinned to the same column ($A) as the formula is filled into cells to the left or right of its original location or pinned to the same row ($2) as the formula is filled up or down into rows above or below the original location.
In your case, you will likely be filling the formula down its column into cells B3, B4, etc., and recording the month number for each row in that row's cell in column A.
If you enter the A2 reference as $A$2, all copies of the formula in column B will continue to get the month number from cell A2. With the $ operators omitted, the formula will automatically increment to reference the next row as it is filled down the column, and will, as seen in the example above, return the correct count of the matching values in rows 7 and 9 of Table 2, etc.
Regards,
Barry