Jabbar thought of a number, added 3 with it. Then he doubled the sum, he got 40. What was the original number?

Jabbar thought of a number, added 3 with it. Then he doubled the sum, he got 40. What was the original number?

Explanation

Let the number x, added 3, then doubled the sum = 40 

40 - 6 = 34 

34 divided by 2 = 17