A traveler buys $1600 in traveler's checks, in $10, $20, and $50 denominations. The number of $10 checks is 5 less than twice the number of $20 checks, and the number of $50 checks is 3 less than the number of $20 checks. How many checks of each type are there?