The number of movie tickets sold on Friday is twice as many as are sold on Sunday. The number of tickets sold on Saturday is three times as many as were sold on Sunday. If 340 tickets were sold on Sunday, how many tickets were sold over the three days?