Buck converters work by switching on and off at very high frequencies. Examine the schematic below. The circle on the left is a voltage source at say 12V. The rectangle on the right is a load that we want to power with say 3V. Let's call the bottom of the load ground and define that voltage as 0V.
The LC low pass filter has just two components: an inductor and a capacitor. The inductor and capacitor are connected in series. The input to the filter is fed into the inductor, the output is taken from the node between the inductor and the capacitor, and the capacitor's other terminal is tied to ground.