2 The polynomial \(a x ^ { 3 } + 5 x ^ { 2 } - 4 x + b\), where \(a\) and \(b\) are constants, is denoted by \(\mathrm { p } ( x )\). It is given that \(( x + 2 )\) is a factor of \(\mathrm { p } ( x )\) and that when \(\mathrm { p } ( x )\) is divided by \(( x + 1 )\) the remainder is 2 .
Find the values of \(a\) and \(b\).