Increase in the price of the substitute commodity-Y would cause increase in the demand for X, implying a forward shift in demand curve for X. Conversely, decrease in the price of the substitute commodity-Y would cause backward shift in demand curve for X.