If the coefficients of 6th and 5th terms of expansion (1+x)n are in the ratio 7:5, then find the value of n.