when you cannot find the answer of limit by putting direct value, you check for left hand limit and right hand limits.

in the chart, when you approach x=2 from left side, you reach at x=1.999 where value of g(x) is 5000000.0000 and when you approach from right at x=2.001 the value of g(x) is again 5000000.0000. and both values are same, so