Question: what is the independent variable pressure or volume?
Answer: If you manipulated the volume and measured the pressure as a result, the volume would be the independent variable and the pressure would be the dependent variable because the pressure was dependent on the volume.