Answer: a) 900 K
b) 1200 K
Explanation:
According to the ideal gas equation:

P = Pressure of the gas = 6.00 atm
V= Volume of the gas = ?
T= Temperature of the gas = 27°C = 300 K 
R= Gas constant = 0.0821 atmL/K mol
n= moles of gas = 1

a) To calculate the final temperature of the system, we use the equation given by Gay-Lussac Law. This law states that pressure of the gas is directly proportional to the temperature of the gas at constant pressure.
Mathematically,

where,
are the initial pressure and temperature of the gas.
are the final pressure and temperature of the gas.
We are given:

Putting values in above equation, we get:

The final temperature is 900 K
b) The combined gas equation is,

where,
= initial pressure of gas = 6.00 atm
= final pressure of gas = 
= initial volume of gas = 4.10 L
= final volume of gas = 
= initial temperature of gas = 
= final temperature of gas =?
Now put all the given values in the above equation, we get:


The final temperature is 1200 K