if EF= 3x-8, FG=2x+2, and EG=16, find the value of x