Solution:
Concept: Resonance is a special case of forced vibrations: when the frequency of the applied periodic force is equal to the natural frequency of the body, the body readily takes energy from the force and vibrates with a very large amplitude. The frequency of a wave is f = 1 ÷ T, so a long period means a low frequency.
Step 1 — Name the phenomenon (part a).
Each building has its own natural frequency. A seismic wave whose frequency matches it makes the building vibrate with a very large amplitude: resonance.
Step 2 — Relate period to frequency (part b).
A long-period seismic wave has a low frequency, since f = 1 ÷ T.
Step 3 — Explain the damage to tall buildings (part b).
A tall building has a low natural frequency (it sways slowly). The low frequency of long-period waves is close to or equal to this natural frequency, so the ground pushes the building at its own natural frequency and it vibrates with a very large amplitude (resonance), which can crack or collapse it. Low-rise buildings have a higher natural frequency, so they resonate with the short-period waves instead.

Watch out: A LONG period means a LOW frequency, not a high one.
Therefore, (a) resonance; (b) the low frequency of long-period waves matches the low natural frequency of a tall building, which then resonates with a very large amplitude.