Step: 1
The quantity of apples Joe bought is 7 kg.
Step: 2
The quantity of apples Joe gave Tony is 2 kg.
Step: 3
The quantity of apples left with Joe = the quantity of apples he bought - the quantity of apples he gave to Tony.
Step: 4
= 7 kg - 2 kg
[Substitute the values.]
Step: 5
Step: 6
5 kg > 2 kg
[Compare the quantities.]
Step: 7
The quantity of apples left with Joe > the quantity of apples with Tony.
Step: 8
Among the two, Joe has greater quantity of apples.