Your ears may pop due to increased pressure as an airplane ascends Boyles law or Charles law or both?

(it's labeled wrong don't know the label for science)