The flat washer goes beneath the head of the bolt. The purpose of the flat washer is to distribute the pressure of the bolt head evenly over the part being secured, and to provide a smooth surface for the bolt to bear on, making it less likely to loosen as a result of an uneven fastening surface.
The lock washer is installed against the nut. It applies a constant force between the nut and the part being attached and is what prevents the nut from loosening during movement or vibration of the parts.
JC
October 2007