Original Volume of the chocolate bar: 12*8*2 = 192cm³
Volume 10% reduced will be: 172.8 cm³
The thickness has to remain 2 cm and the other ones must be reduced by an equal number of cm, so:
(12-x)*(8-x)*2 = 172.8
(12-x)*(8-x) = 86.4
96-12x-8x+x²-86.4 = 0
x²-20x+ 9.6 = 0
Now let's solve the quadratic equation:

New dimensions:
12-0.45 = 11.55
8-0.45 = 7.55
2