solving problems in electrical ciruits