Option 1
G-------------H--------------------J ⇒ GJ = GH + HG = 3 + 5 = 8
Option 2
J-------------G-------------------H ⇒ GJ = HJ - GH = 5 - 3 = 2
Option 3
J
I\
I \
I \
I \
I_____\
G H
[tex]GJ = \sqrt{HJ^2 - GH^2} = \sqrt{5^2 - 3^2}=\sqrt{25 - 9}=\sqrt{16}= 4[/tex]