A line is a set of points.
Every line is contained in a plane.
So all the points of the line are also on the plane.
Here the line EG lies in the plane X.
So all the points of line EG lie in plane X.
So E & G also lie in plane X.
Hence G lies in Plane X.
The given statement is a true statement.