You must fill the yellow pieces with the numbers from above; in the ones that have two numbers, the top ones correspond to the horizontal sum of all the numbers and the bottom number is the vertical sum.