A blanket factory makes 13 blankets in the morning and 81 in the afternoon, but returns 59 due to defects. Each blanket is sold at a price equal to 39 times the total number of good blankets they have, plus the number of good blankets. What's the total value of the blankets they've sold?