In order to calculate the final volume of the gas, we may apply Charles Law, which states that for a fixed amount of gas subject to a fixed amount of pressure, the volume and temperature of a gas are directly proportional. This is:
V/T = constant
Using this equation,
5/298 = V/278
V = 4.66 L
The final volume of the gas is 4.66 liters