Estelle and Carlos will be hosting a party and will buy 6 pies for their guests. Two lemon meringue pies cost $3 less than 4 blueberry pies. Three lemon meringue pies cost$9 more than 3 blueberry pies. How much does each type of pie cost?