How to merge three scetches?

const int analogInPin = A0;  
const int lightPin = 2;
const int soundPin = 3;

Sound, light, and gas, huh? Well, that's perfectly obvious.