There is a total of 56 pieces of candy that was given by the grandmother. Denali got 12 more pieces of candy than Karai which is the expression (x+12). To find the number that Karai got you do:
x+12=56
x=44
44/2=22 candies Karai got.
22+12=34 candies Denali got.