At a local Zoo a child ticket costs $8.50 and an adult ticket costs $12.50. On one weekend in June they sold a total $1,374 worth of tickets. A total of 140 tickets were sold. Write a system of equations that can be used to find how many of each ticket was sold?