What could be the value of # in this number: 985#865, if this number is divisible by 9?

10 : 40 : 36