For assets sold as a bona fide resident of PR, appreciation that occured while a bonafide resident of PR are not taxable by the IRS. Appreciation that occurred ...
Puerto Rico should give you a tax credit for how much you pay to the IRS that year if you're a resident of Puerto Rico. So you shouldn't be taxed on that twice....