A large warehouse had a total of 4,000 towels for sale. The ratio of the number of blue towels to red towels was 2:1. The rest were white towels. After 1/4 of the blue towels and 1/2 of the white towels were sold, there were 2,400 towels left. How many red and white towels were there at first?​