If you would like to find 2 numbers which you can add up to get 24 and multiply to get -25, you can calculate this using the following steps:
a + b = 24 ... b = 24 - a a * b = -25 ... a * (24 - a) = -25 ... 24 * a - a^2 = -25 ... 0 = a^2 - 24 * a - 25 0 = (a - 25) * (a + 1) 1. a = 25 2. a = -1
b = 24 - a 1. b = 24 - 25 = -1 2. b = 24 - (-1) = 25