Steve gave Keith an amount of money equal to the amount in Keith’s pocket. Keith then gave Steve an amount of money equal to what Steve had left. Keith then had $14 and Steve had $8. How much money did Keith originally have in his pocket?

(Source: Mathematics Teaching in the Middle School, Mar-Apr 1996).