To find the ratio of the number of green apples to the total number of apples, we first need to determine the total number of apples.
The fruit basket contains:
- 2 red apples
- 5 green apples
Calculating the total number of apples: \[ \text{Total apples} = \text{Red apples} + \text{Green apples} = 2 + 5 = 7 \]
Next, we find the ratio of the number of green apples to the total number of apples: \[ \text{Number of green apples} = 5 \] \[ \text{Total number of apples} = 7 \]
Now we can express the ratio: \[ \text{Ratio of green apples to total apples} = \frac{\text{Number of green apples}}{\text{Total number of apples}} = \frac{5}{7} \]
In ratio form, this is expressed as: \[ 5:7 \]
Thus, the answer is \(\boxed{5:7}\).