From a hot reservoir at a temperature of T1, Carnot engine A takes an input heat of 5550 J, delivers 1500 J of work, and rejects heat to a cold reservoir that has a temperature of 495 K. This cold reservoir at 495 K also serves as the hot reservoir for engine B, which uses the rejected heat of the first engine as input heat. Engine B also delivers 1500 J of work, while rejecting heat to an even colder reservoir that has a temperature of T2. Find the temperatures.