Following the discovery of additional jewels, the pirate captain realized he had miscalculated the number of types of jewels in his original stash. Instead of 23 types of jewels, he remembered that he actually only had 17 types originally, with each type still containing 28 jewels. After recalculating his treasure and still taking into account the loss of 40 jewels and the 16 he found on a deserted island, how many jewels does he have now?