Can I do the below problem with ML?
Try an LSTM Encoder-decoder model. The encoder takes Column_B as input and Decoder gives Column X, Column_A as output. Or create a two machine learning models one for each column prediction.