So,
Let "T" be the total amount of ingredients for the protein shake.
Let "F" be the aount of fruit, and let "y" be the amount of yogurt.
We know that 2/3 of the total amount of ingredients should be fruit, so we could write:
And, the amount of yogurt in the recipe should be 1/4 of the amount of the fruit. So:
Given that He has 24 grams of fruits left over, we could write the following: