Gay-Lussac's Law teaches us that the pressure of a gas increases as its temperature increases. The equation, P1/T1 = P2/T2 can help solve your problem. (Note that the temperature must be converted into Kelvin, K, by adding 273 to your temperature in degrees Celsius.)
The initial pressure, P1 = 780 torr
The initial temperature, T1 = 20°C = 293K
The final temperature, T2 = 40°C = 313K
You can plug all of these values into the equation and solve for P2:
(780 torr)/(293K) = P2/(313K)