Let's assume
total number of pieces in a cake is x
Gabe eats another fourth of the whole cake
so,
Gabe eats
![=(1)/(4) x](https://img.qammunity.org/2019/formulas/mathematics/middle-school/5qpw31vba82b8qoh8sl0g909hxz6kz8a24.png)
cedric eats 3 pieces
so,
Cedric and Gade together eat
![=(1)/(4) x+3](https://img.qammunity.org/2019/formulas/mathematics/middle-school/jyj7ffxe1lrbvt7k7vhccgap6zieysskig.png)
we are given
Cedric and Gabe eat 9 pieces cake together
so, we can set them equal
and we get
![(1)/(4) x+3 =9](https://img.qammunity.org/2019/formulas/mathematics/middle-school/8zf997c33ubufd1n4es35nn61lkfsmtrii.png)
now, we can solve for x
Subtract both sides 3
![(1)/(4) x+3-3 =9-3](https://img.qammunity.org/2019/formulas/mathematics/middle-school/dht3evuebo8nyhqa6a7wd9p90hj4kuj4ef.png)
![(1)/(4) x =6](https://img.qammunity.org/2019/formulas/mathematics/middle-school/whzh6qfdq7x4t6qx7kk3mnecl9umc3euan.png)
Multiply both sides by 4
![(1)/(4) x*4 =6*4](https://img.qammunity.org/2019/formulas/mathematics/middle-school/dke9e1f6qxg6h9flzo3qlcnprmqzz2bsa5.png)
![x =24](https://img.qammunity.org/2019/formulas/mathematics/middle-school/cv8qo558op53uvthn5nufh98ejeuwxvdzb.png)
so,
total number of pieces are 24.........Answer