A normal photo usually has one exposure. That means that you open and close the shutter once, letting a certain amount of light hit the film/sensor.
This is called the shutter speed. If you have a slow shutter speed you have a long exposure.
When they say a 30 second exposure... they're just saying that you leave the shutter open for 30 seconds. It must be a very dark environment for the exposure to be that long otherwise you'll end up with big white splotches or a completely white screen/frame if it's the scene wasn't dark enough.