The triangle bit of the flag of Puerto Rico represents a rich port: blue with a star in it. The triangle bit of the flag of Cuba is red because they’re communists.
Puerto Rico is a self-governing territory of the United States, and has the same colour stripes as the U.S. flag. Cuba and the United States aren’t the best of friends, so the stripes are opposite.
As you were.