You will be given a definition of a task first, then some input of the task.
Given a question and a context passage, generate the answer having the word or phrase from the context passage. Here, the answer should be a shortest continous span from the passage.

Context: When two or more waves meet, they interact with each other. The interaction of waves with other waves is called wave interference. Wave interference may occur when two waves that are traveling in opposite directions meet. The two waves pass through each other, and this affects their amplitude. Amplitude is the maximum distance the particles of the medium move from their resting positions when a wave passes through. How amplitude is affected by wave interference depends on the type of interference. Interference can be constructive or destructive. Constructive interference occurs when the crests, or highest points, of one wave overlap the crests of the other wave. You can see this in the Figure 1.1. As the waves pass through each other, the crests combine to produce a wave with greater amplitude. Destructive interference occurs when the crests of one wave overlap the troughs, or lowest points, of another wave. The Figure 1.2 shows what happens. As the waves pass through each other, the crests and troughs cancel each other out to produce a wave with zero amplitude. Waves may reflect off an obstacle that they are unable to pass through. When waves are reflected straight back from an obstacle, the reflected waves interfere with the original waves and create standing waves. These are waves that appear to be standing still. Standing waves occur because of a combination of constructive and destructive interference. Q: How could you use a rope to produce standing waves? A: You could tie one end of the rope to a fixed object, such as doorknob, and move the other end up and down to generate waves in the rope. When the waves reach the fixed object, they are reflected back. The original waves and the reflected waves interfere to produce a standing wave. Try it yourself and see if the waves appear to stand still. 
 Question: when two waves pass through each other in opposite directions, the interference affects their
Output:
amplitude.