El primer amigo recibe = <img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B5%7D%7B12%7D%20" />
el segundo recibe = <img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B1%7D%7B3%7D%20" />
primero sumaremos las cantidades q recibeb los 2
<img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B5%7D%7B12%7D%20%2B%20%5Cfrac%7B1%7D%7B3%7D%20%3D%20%5Cfrac%7B5%2B4%7D%7B12%7D%20%3D%20%5Cfrac%7B9%7D%7B12%7D%20" />
simplificamos la tercera
<img src="https://tex.z-dn.net/?f=%20%5Cfrac%7B3%7D%7B4%7D%20" />
como hablaremos de cuartos 4 / 4 sera = los 24 caramelos
entonces ahora restamos
4 / 4 - 3 / 4 = 1 / 4
entonces el tercero recibira 1 / 4 de caramemos ahora
4 / 4 = 24 caramelos
1 / 4 = x caramelos
tachamos los denominadoresy hacemos una regla de 3 simple directa
<img src="https://tex.z-dn.net/?f=x%3D%20%5Cfrac%7B1%2A24%7D%7B4%7D%20" />
<img src="https://tex.z-dn.net/?f=x%3D%20%5Cfrac%7B24%7D%7B4%7D%20" />
simplificamos la mitad
<img src="https://tex.z-dn.net/?f=x%3D%20%5Cfrac%7B12%7D%7B2%7D%20" />
simplificamos la mitad
<img src="https://tex.z-dn.net/?f=x%3D6" />
entonces la respuesta es q el tercero recibe 6 caramelos q representa a 1 / 4 de 24 caramelos
espero q te sirva suerte y saludos.