Suppose that he has x apples at first

basket * A

1/3x+4

basket B: 1/3(x - 1/3x - 4) + 3

= 2/9x + 5/3

basket C: 1/3(x - 1/3x - 4 - 2/9x - 5/3) + 3

= 4/28x + 10/9

all apples:

1/3x + 4 + 2/9x + 5/3 + 4/27x + 10/9 + 3=x

{ look question carefully} 19/27x + 88/9 = x

8/27x = 88/9

{ careful calculation} x = 33

So the answer is 33