This brings you into the realm of complex numbers.
Let the two numbers be a and b.
Then, a + b = 12....Equation (1)
and, ab = 1008 .....so b = 1008/a
Substituting for b in Equation (1)
a + 1008/a = 12...........now multiply throughout by a and equate to zero.
a2 -12a + 1008 = 0
This can be solved using the quadratic formula
a = [12 ± √ (144 - 4032)] ÷ 2 = 6 ± i31.177 (3dp)
The two (complex) numbers are 6 + i31.177 and 6 - i31.177.
Check : (6 + i31.177) + (6 - i31.177) = 12
(6 + i31.177)(6 - i31.177) = 36 + 972 = 1008
you could multiply 84 by 10 = 840 then multiply 84 by 2 = 168 add these two numbers = 1008
1008
6 and 2
The numbers are 3 and 4
-628
-936
you could multiply 84 by 10 = 840 then multiply 84 by 2 = 168 add these two numbers = 1008
1008
-1
12 and 5
6 and 2
-452
-397
The numbers are: 12 and -2
The numbers are 3 and 4
-628
25