Point H is the midpoint I'd line segment GJ

Line segment GH is 7x-5 HJ is 4x+1 what is the value of X?