Powering the Future: How Solar Panels and Batteries Work Together