The shapes will fall from the top of the screen either to the left or the right of the dotted line.
You need to press B until the shape at the bottom matches the ones falling down. When it does, you need to send the shape at the bottom out to destroy the falling shape.
If it is on the left side of the dotted line, press A. If it is on the right side, press C.