solving equations system by equation