If one bag costs $1 for 5 apples and we need to find how many apples we will have for $5.Then, we can use the rule of three to find the result.
Then:
$1 -------------- 5 apples
$5----------------- x apples
Where x = (5*5)/1
x = 25 applies
Hence, for $5 we will have 25 apples.