The answer is 31, because the other lengths have gotten 10 added onto them:
25-10=15, 15+10=25
So this way, it would be 21+10=31, 31-10=21