Answer:
When you inhale the diaphragm a muscle beneath the lungs flattens out to make way for the air entering your lungs
Explanation:
Since the subject in this sentence which is the diaphragm is a singular noun, the verb flatten should become flattens in order to agree the subject to the verb.