You can check if the value of g is correct by plugging in the value of g to the equation. If your check does not it doesn't mean your answer is not correct because sometimes it can be a no solution equation which means that there is no solution to the equation.