finding equivalent resistance problem