Mario bought $5 worth of stamps at the post office. He bought ten more 6-cent stamps than 10-cent stamps. The number of 8-cent stamps was three times the number of 10-cent stamps. He also bought two 20-cent stamps. How many of each kind of stamp did he purchase?