Question: "State of Grace" and "I knew You Were Trouble" were both off of Taylor Swift's "Red" album, which song was written by Swift, Max Martin and Shellback?
Context: "Bad Blood" is a song by American singer-songwriter Taylor Swift, from her fifth studio album "1989" (2014).  The remixed version of the song, featuring American rapper Kendrick Lamar, was released on May 17, 2015, by Republic Records as "1989"' s fourth single.  The album version was written by Swift, Max Martin, and Shellback, with Lamar writing his verses on the remixed version.  The lyrics of "Bad Blood" describe betrayal by a close friend.  The album version is the eighth track of "1989". "I Knew You Were Trouble" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012).  It was released on October 9, 2012, in the United States by Big Machine Records as the third promotional single from the album.  Later, "I Knew You Were Trouble" was released as the third single from "Red" on November 27, 2012, in the United States.  It was written by Swift, Max Martin and Shellback, with the production handled by the latter two. "Style" is a song by American singer-songwriter Taylor Swift and is the third track from her fifth album, "1989" (2014).  The song was written by Taylor Swift, Max Martin, Shellback, and Ali Payami.  It was released to radio by Republic Records, in partnership with Swift's label Big Machine Records, on February 9, 2015, as the album's third single, following "Blank Space". "Shake It Off" is a song recorded by American singer-songwriter Taylor Swift from her fifth album, "1989" (2014).  Written by Swift, Max Martin and Shellback, it is an uptempo dance-pop track considered to be a departure from Swift's earlier country pop music style.  "Shake It Off" is the sixth track on the album and serves as the lead single.  The song premiered during a Yahoo! live stream session on August 18, 2014 (also streaming internationally online); its music video was also released the same day.  Several hours later, the song was made available for digital download. "We Are Never Ever Getting Back Together" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012).  Swift co-wrote the song with its producers, Max Martin and Shellback.  The song was released as the lead single from "Red" on August 13, 2012, by Big Machine Records.  Its lyrics depict Swift's frustrations at an ex-lover who wants to re-kindle their relationship. " Rolling Stone" magazine named the song the second best song of 2012 while it took the fourth spot in "Time"' s end-of-year poll.  It has received a Grammy Award nomination for Record of the Year.  It also received a People's Choice Awards nomination for Favorite Song of the Year. 1989 is the fifth studio album by American singer-songwriter Taylor Swift released on October 27, 2014, through Big Machine Records.  Swift began composing the album following release of previous studio effort, "Red" (2012).  Over the course of the two-year songwriting period, she collaborated with producers Max Martin and Shellback—Martin served as the album's executive producer alongside Swift.  The album's title was named after the singer's birth year and inspired by the pop music of the 1980s. "Blank Space" is a song by American singer-songwriter Taylor Swift from her fifth studio album "1989" (2014).  It was written by Swift, Max Martin and Shellback.  The song was released to the radio by Republic Records on November 10, 2014 as the album's second single, after "Shake It Off" and is the second track on the album.  Musically, "Blank Space" is an electropop song with lyrics that satirize the media's perception of Swift and her relationships. "22" is a song recorded by American singer-songwriter Taylor Swift for her fourth album, "Red" (2012).  It was written by Swift along with Max Martin and Shellback.  The song was released as the album's fourth single on March 12, 2013.  The lyrics describe the joys of being 22 years old. "State of Grace" is a song by American singer-songwriter Taylor Swift from her fourth studio album "Red" (2012).  It was released to the iTunes Store on October 16, 2012, in the United States by Big Machine Records as the fourth and final promotional single from the album.  It was the only promotional single from the album that was not re-issued as an official single, as "Begin Again", "Red", and "I Knew You Were Trouble", were all later re-issued as official singles.  The song was written by Swift and produced by Nathan Chapman and Swift.  Musically, the song is a departure from Swift's typical country pop, using influences of alternative rock while being compared to bands such as U2, Muse and The Cranberries.  The song has received immense praise from music critics, who have complimented its broader sound in comparison with Swift's previous material. "Wildest Dreams" is a song recorded by American singer-songwriter Taylor Swift for her fifth studio album, "1989".  The song was released to radio by Big Machine Records on August 31, 2015, as the album's fifth single.  Swift co-wrote the song with its producers Max Martin and Shellback.  Musically, "Wildest Dreams" is a love ballad with a prominent dream pop influence, with the lyrics describing Swift's plea for her lover to remember her.
Answer: I Knew You Were Trouble