Answer:
Both are used for breathing.
Step-by-step explanation:
When rib muscles and the diaphragm contract they increase the volume of the chest cavity, increasing the air pressure outside the body, causing air to rush into the lungs to fill the vacuum created by the increase in volume.