use pythagorus, a² + b² = c²
in this case you have c and either a or b. (it doesn't matter which, i'll use a)
using a bit of algebra, you can turn your formula into b =

now all you have to do is plug in your numbers. a = 6mm and c = 9mm
b =

=

=

≈ 6.7mm