A gas sample enclosed in a rigid metal container at room temperature 20C has an absolute pressure p_1. The container is immersed in hot water until it warms to 40C. What is the new absolute pressure p_2?

Express your answer in terms of p_1.

I was told to use p_1/T_1=p_2/T_2
I got p_1/293=p_2/313, how can you get p_2 then?

I really don't understand this

To solve for p₂, you can rearrange the equation p₁/T₁ = p₂/T₂.

In this case, you have p₁/293 = p₂/313. To isolate p₂, you can cross-multiply and then divide by 293:

p₂ = (p₁/293) * 313

This formula allows you to calculate the new absolute pressure, p₂, in terms of p₁.