adding two solutions