Matt and Jasmine are selling cookie dough for a school fundraiser. Customers can buy packages of white chocolate chip cookie dough and packages of gingerbread cookie dough. Matt sold 7 packages of white chocolate chip cookie dough and 13 packages of gingerbread cookie dough for a total of $366. Jasmine sold 6 packages of white chocolate chip cookie dough and 15 packages of gingerbread cookie dough for a total of $387. Find the cost each of one package of white chocolate chip cookie dough and one package of gingerbread cookie dough.