At a firefighters' pancake breakfast, the firefighters served 345 people and raised $1395. As adult's ticket to the pancake breakfast was $5 and the cost of a child's ticket was $3. What was the number of child and adult tickets sold?