The value of 3 in the first, is 0.300 (or 0.3) while the value of 9 in the second is 0.900 (or 0.9).
So the value of 9 in the second is greater than the value of 3 in the first.
The number to be written will be 8.935 because it has the underlined digit with greater value.