Two bars A and B made of different material have same length. The coefficient of expansion and Young's modulus of bar B is twice that of bar A. If the temperature of both bars is increased by the same amount while preventing any expansion, then the ratio of stress developed in bar A to that in bar B is