Gay-Lussac's Law states that the pressure of a sample of gas at constant volume, is directly proportional to its temperature in Kelvin.
According to Gay-Lussac's Law:
P1 / T1 = constant
After the change in pressure and temperature,
P2 / T2 = constant
Combine the two equations:
P1 / T1 = P2 / T2
When any three of the four quantities in the equation are known, the fourth can be calculated. For example, we've known P1, T1 and P2, the T2 can be:
T2 = P2 x T1 / P1