Gay-Lussac's formula is used when we have two situation involving temperature and pressure, and we have to use the situation 1 to find the missing value in situation 2, like we have in our question:
P1/T1 = P2/T2, this is the formula, where:
P = pressure
T = temperature
We already have
P1 = 9 atm
T1 = 25 °C
P2 = ?
T2 = 47 °C
Now let's use these values in our formula:
9/25 = P2/47
P2 = 17 atm
This makes sense, since if we increase the temperature we will also have an increase of pressure, only if we have constant volume