(a) In this experiment, flame is seen only when the holes are exactly in a straight line. If any of the holes fail to come in line with the others, flame cannot be seen. This proves that light travels in a straight line.
(b) Shadows are formed because light travels in a straight line. In a pinhole camera, the image is formed because light travels in a straight line.