The ticket sales at a movie theater were $3,787. Adult tickets are $13, and senior tickets are $9. The number of senior tickets sold was 27 less than twice the number of adult tickets. Determine the number of adult tickets and senior tickets sold.