Complex sentence: It features guest vocals from Selena Gomez; she co-wrote the track with Jacob Kasher and Puth; the latter also served as a producer.
Split into simpler sentences: It features guest vocals from Selena Gomez. Puth co-wrote the track with Jacob Kasher and Gomez; the latter also served as a producer.