James has a certain number of apples. He gave half of them to Tim. He also gave Maya one third. He has 10 apples left. How many did he have to start with?

Let X be the number of apples James started with.

James gave Tim X/2 apples.
James gave Maya X/3 apples.
James has X - X/2 - X/3 = 10 apples left.
Combining like terms, we get (3X - X - 2X)/6 = 10
Combining like terms again, we get 0.5X/6 = 10
Dividing both sides by 0.5/6, we get X = 10 * (6/0.5)
Multiplying the numerator and denominator, we get X = 60/0.5 = <<60/0.5=120>>120 apples. Answer: \boxed{120}.