Logic 46

What number should replace the question mark?

233714
 
83811
 
6397
 
9?12