by default my X-value is 100.

Calculate the Bag-Value and Enter it, press "Return" key

You can enter for me another value of X, press "Return" key

and the corresponding value of the Bag, press "Return" key