Let's assume
total number of pieces in a cake is x
Gabe eats another fourth of the whole cake
so,
Gabe eats

cedric eats 3 pieces
so,
Cedric and Gade together eat

we are given
Cedric and Gabe eat 9 pieces cake together
so, we can set them equal
and we get

now, we can solve for x
Subtract both sides 3


Multiply both sides by 4


so,
total number of pieces are 24.........Answer