In this math number puzzle the task is to find the missing number refer below picture

In this puzzle there is a set of three separate blocks each containing 4 numbers but in the top block one number is missing you need to find that number by carefully finding out the logic in bottom mentioned two sets and use that to find the missing number in the top set.