James had 1/2 the number of stamps David had at first. After David gave 14 of his stamps to James, James had 2/3 the number of stamps David had. How many stamps did James have at first?

Let the number of stamps that David at first ==D

James had ==1/2D

1/2D + 14 ==2/3 * [D - 14], solve for D

D ==140 stamps that David started with

140 / 2 ==70 stamps that James started with.