find the value of X