(2) when X > 500 and X+500 < 2x, it is more economical to choose the factory;
When x < 500 and x+500 > 2x, it is more economical to choose factory B;
When X=500 and X+500=2X, the factory selection is as cost-effective as the factory selection.