Ricky had 176 cookies initially
Let Ricky has x number of cookies
Cookies left after he ate 1/8 of his cookies and additional 14 cookies:
x - (1/8x + 14)
Cookies left after he ate 3/10 of the remaining cookies and an additional 24 cookies on Saturday:
x - (1/8x + 14) - 3/10(x - (1/8x + 14)) + 24)
Cookies left after he ate 40 more cookies on Sunday
x - (1/8x + 14) - 3/10(x - (1/8x + 14)) + 24) - 40 ------(1)
Cookies left with him at the end = 34
Therefore, equating equation (1) with 34
(7/10)((7x/8) - 14) - 64 = 34
x = 176
Thus Ricky had 176 cookies intially
Learn more about linear equations:
https://brainly.com/question/19549098
#SPJ4