Use the ratio of two consecutive values:
nCr−1nCr=r!(n−r)!n!×n!(r−1)!(n−r+1)!=rn−r+1
First ratio.
rn−r+1=286715=25
2n−2r+2=5r⇒2n+2=7r
Second ratio. In the same way, nCrnCr+1=r+1n−r, so
r+1n−r=7151287=59
5n−5r=9r+9⇒5n=14r+9
Solve. From the first equation, 2n=7r−2, so 10n=35r−10. From the second, 10n=28r+18. Hence
35r−10=28r+18⇒7r=28⇒r=4
2n+2=28⇒n=13
Check: 13C3=286, 13C4=715, 13C5=1287. So n=13 and r=4.