AS June 2023 Paper 1 Q14

14 The inequality

\[(x^2 - 5x - 24)(x^2 + 7x + a) \lt 0\]

has the solution set

\[\{x : -9 \lt x \lt -3\} \cup \{x : 2 \lt x \lt b\}\]

Find the values of integers \(a\) and \(b\) [4 marks]