Sabrina Carpenter and Taylor Swift worked together on the title track of the Love Story singer's latest album.