Ayyy, we use our good friend ratios.
So when doing this, we know that the ratios of these need to be similar.
We can solve by setting this up as:
14/10 = x/6
Edit: Wait, nope, maybe I am write. I see you already did Pythagoras
Ahh, try this.
14/16 = x/6
The answer is 5.25!