Discuss the significance of Kirchhoff's laws in analyzing electrical circuits. Explain how they are applied to solve circuit problems and provide an example demonstrating their use."