Inside each shape are cyan and yellow balls with a corresponding number. Use the clues to determine the missing number marked with "?" The formula is the same for all shapes. Express your answer as an integer whole number.