The school that Emily goes to is selling tickets to the annual dance competition.

On the first day of ticket sales the school sold 3 senior citizen tickets and 14 child tickets for a total of $145.

The school took in $178 on the second day by selling 6 senior citizen tickets and 14 child tickets.

Find the price of a senior citizen ticket and the price of a child ticket.