The school theater department made $2,142 on ticket sales for the three nights of their play. The department sold the same number of tickets each night and each ticket cost $7. How many tickets did the theater department sell each night?​