Relax

Respuesta :

 The pattern would be 5,7,12,20,31,45
31507
The answer would be 45.