Phase equilibrium in a gel-homopolymer solution system