¡Buenas!
Digamos que nuestra canasta tiene<img src="https://tex.z-dn.net/?f=M" /> manzanas, entonces.
Se comieron los<img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B5%7D%7B8%7D%20" />de M.
<img src="https://tex.z-dn.net/?f=M%20-%20%20%5Cdfrac%7B5%28M%29%7D%7B8%7D%20%3D%20%5Cdfrac%7B8M-5M%7D%7B8%7D%20%3D%20%20%5Cdfrac%7B3M%7D%7B8%7D%20" />
Lo que nos queda son<img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B3%7D%7B8%7D%20" /> de M.
Ahora el problema nos dice que de los <img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B3%7D%7B8%7D%20" />, <img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B7%7D%7B8%7D%20" /> fueron guardadas en el refrigerador.
<img src="https://tex.z-dn.net/?f=%20%5Cdfrac%7B3M%7D%7B8%7D-%20%20%20%5Cdfrac%7B7%7D%7B8%7D%20%28%5Cdfrac%7B3%28M%29%7D%7B8%7D%29%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20%20%5Cdfrac%7B3%28M%29%7D%7B8%7D-%20%5Cdfrac%7B21%28M%29%7D%7B64%7D%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20%20%5Cdfrac%7B64%283%29%28M%29-8%2821%29%28M%29%7D%7B8%2864%29%7D%20%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20%20%20%5Cdfrac%7B192M-168M%7D%7B8%2864%29%7D%20%20%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20%5Cdfrac%7B24M%7D%7B512%7D%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20Simplificando%20%20%5C%5C%20%20%5C%5C%20%20%5C%5C%20%20%5Cdfrac%7B3M%7D%7B64%7D%20" />
Entonces lo que nos queda, es<img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B3%7D%7B64%7D%20%20" /> de M, y el problema nos dice que esta cantidad es 3, y se pudrió.
<img src="https://tex.z-dn.net/?f=%20%5Cdfrac%7B3%28M%29%7D%7B64%7D%20%3D%203%20%5C%5C%20%20%5C%5C%203M%3D64%283%29%20%5C%5C%20%20%5C%5C%20M%20%3D%20%20%5Cdfrac%7B64%283%29%7D%7B3%7D%20%5C%5C%20%20%5C%5C%20M%3D64%20" />
¡Ya tenemos el valor de M!
RESPUESTA
<img src="https://tex.z-dn.net/?f=%5Cboxed%7B64%7D" />.