N = original number of comic books
N/2 = number of comic books after he sold half of his collection
N/2 + 16 = number of comic books after he bought 16 more
N/2 + 16 = 36
Solving for N:
Answers:
He began with 40 comic books
Equation to represent the problem: N/2 + 16 = 36