It should help to write out algebraically what exactly is happening. Suppose that the number of letters for Adam's object is $x$. Adam will then quintuple it to get $5x$ and add three to get $5x+3$. He then doubles it to get $10x+6$. Then, another number $k$ is added to it to get $10x+6+k$. Can you see how to recover $x$ and $k$ from this? Try playing around with it and maybe making a table of the value of $10x+6+k$ depending on $x$ and $k$.
(More simpliy: Suppose you knew $10x+k$? Could you figure it out then? Try plugging suitable values for $x$ and $k$ into this and see a pattern)