The leftmost column shows the terms of the first polynomial factor. The topmost row shows the terms of the second polynomial factor. The rest of the terms are to be summed; and they are the product of each corresponding row and column; and then you combine like terms to simplify.