Sheng thinks of a number, doubles it, then subtracts half the original number, then adds three. He finishes with the number 39. Sheng’s original number was
A 21
B 24
C 27
D 36