x = number of apples with which he started
he gives away 1/3 so he has 2/3 left
2/3 x then he gives 1/2 away....leaving him 1/2 of what he had at this point
1/2 2/3 x then he dropped 1/4 ...so he still has 3/4 at this point
3/4 1/2 2/3 x = 9
6 /24 x = 9
x = original amount = 36 apples