The resolvent for simple random walks on the free product of two discrete groups