A baseball team sells tickets for two games. The ratio of sold tickets to unsold tickets for the first game was 7 : 3. For the second game, the ratio was 13 : 2. There were 240 unsold tickets for the second game. How many tickets were sold for the first game?