Solving the spherical p-spin model with the cavity method: equivalence with the replica results. (26th November 2020)