Which number replaces the question mark?

add below two numbers minus above number:

6+5-2=9

The answer is 9 because you add the bottom numbers and subtract the sum by the top number

9 is the correct Answer

Which number replaces question mark in the following grid?

Which number replaces the question mark - 12, 9, 7, 3, 4, 6, ??