A man paid a debt of $6789 in three payments. The second time he paid $3 more than he did the first time and the third payment was twice as much as the second payment. What was the amount of each payment?