First, I calculate the lenght of the cube.
Let´s L= length , R = radius of the hemisphere,
I can write: L exp2 + L/2 exp 2 = R exp 2
Solving this equation, we get L = 8,94
Then ,
Let D= diagonal of the square base,
Dexp 2 = 8,94 exp 2 + 8,94 exp 2 It gives D= 12,64
The final equation is
length of green line exp 2 = 12,64/2 exp 2 + 8,94 exp 2 It gives 10,94
The answer is 10,94