The pressure of the gas = 40 atm
Further explanation
Given
200 ml container
P = 2 atm
final volume = 10 ml
Required
Final pressure
Solution
Boyle's Law
At a fixed temperature, the gas volume is inversely proportional to the pressure applied

Input the value :
P₂ = P₁V₁/V₂
P₂ = 2 x 200 / 10
P₂ = 40 atm