Stephen Joshua Sondheim (; born March 22, 1930) is an American composer and lyricist known for more than a half-century of contributions to musical theater. Sondheim has received an Academy Award, eight Tony Awards (more than any other composer, including a Special Tony Award for Lifetime Achievement in the Theatre), eight Grammy Awards, a Pulitzer Prize, a Laurence Olivier Award, and a 2015 Presidential Medal of Freedom. He has been described by Frank Rich of The New York Times as "now the greatest and perhaps best-known artist in the American musical theater." His best-known works as composer and lyricist include A Funny Thing Happened on the Way to the Forum, Company, Follies, A Little Night Music, Pacific Overtures, Sweeney Todd, Merrily We Roll

Sondheim was born into a Jewish family in New York City, the son of Etta Janet ("Foxy," nee Fox; 1897-1992) and Herbert Sondheim (1895-1966). His father manufactured dresses designed by his mother. The composer grew up on the Upper West Side of Manhattan and, after his parents divorced, on a farm near Doylestown, Pennsylvania. As the only child of well-to-do parents living in the San Remo on Central Park West, he was described in Meryle Secrest's biography (Stephen Sondheim: A Life) as an isolated, emotionally-neglected child. When he lived in New York, Sondheim attended ECFS, the Ethical Culture Fieldston School known simply as "Fieldston." He later attended the New York Military Academy and George School, a private Quaker preparatory school in Bucks County, Pennsylvania where he wrote his first musical, By George, and from which he graduated in 1946. Sondheim spent several summers at Camp Androscoggin. He later matriculated to Williams College and graduated in 1950.  He traces his interest in theatre to Very Warm for May, a Broadway musical he saw when he was nine. "The curtain went up and revealed a piano," Sondheim recalled. "A butler took a duster and brushed it up, tinkling the keys. I thought that was thrilling."  When Sondheim was ten, his father (already a distant figure) left his mother for another woman (Alicia, with whom he had two sons). Herbert sought custody of Stephen but was unsuccessful. Sondheim explained to biographer Secrest that he was "what they call an institutionalized child, meaning one who has no contact with any kind of family. You're in, though it's luxurious, you're in an environment that supplies you with everything but human contact. No brothers and sisters, no parents, and yet plenty to eat, and friends to play with and a warm bed, you know?"  Sondheim detested his mother, who was said to be psychologically abusive and projected her anger from her failed marriage on her son: "When my father left her, she substituted me for him. And she used me the way she used him, to come on to and to berate, beat up on, you see. What she did for five years was treat me like dirt, but come on to me at the same time." She once wrote him a letter saying that the "only regret [she] ever had was giving him birth." When his mother died in the spring of 1992, Sondheim did not attend her funeral and had already been estranged from her for nearly 20 years at that point.  Burt Shevelove invited Sondheim to a party; Sondheim arrived before him, and knew no one else well. He saw a familiar face: Arthur Laurents, who had seen one of the auditions of Saturday Night, and they began talking. Laurents told him he was working on a musical version of Romeo and Juliet with Leonard Bernstein, but they needed a lyricist; Betty Comden and Adolph Green, who were supposed to write the lyrics, were under contract in Hollywood. He said that although he was not a big fan of Sondheim's music, he enjoyed the lyrics from Saturday Night and he could audition for Bernstein. Sondheim met Bernstein the following day, played for him and Bernstein said he would let him know. The composer wanted to write music and lyrics; after consulting with Hammerstein, Bernstein told Sondheim he could write music later. In 1957, West Side Story opened; directed by Jerome Robbins, it ran for 732 performances. Sondheim has expressed dissatisfaction with his lyrics, saying that they do not always fit the characters and are sometimes too consciously poetic. While Bernstein was working on Candide, Sondheim reportedly wrote some of West Side Story's music; Bernstein's co-lyricist credit disappeared from West Side Story during its tryout, possibly as a trade-off. Sondheim insisted that Bernstein told the producers to list him as the sole lyricist. He described the division of the royalties, saying that Bernstein received three percent and he received one percent. Bernstein suggested evening the percentage at two percent each, but Sondheim refused because he wanted the credit. Sondheim later said he wished "someone stuffed a handkerchief in my mouth because it would have been nice to get that extra percentage".  After West Side Story opened, Shevelove lamented the lack of "low-brow comedy" on Broadway and mentioned a possible musical based on Plautus' Roman comedies. When Sondheim was interested in the idea he called a friend, Larry Gelbart, to co-write the script. The show went through a number of drafts, and was interrupted briefly by Sondheim's next project.  In 1959, Sondheim was approached by Laurents and Robbins for a musical version of Gypsy Rose Lee's memoir after Irving Berlin and Cole Porter turned it down. Sondheim agreed, but Ethel Merman - cast as Mama Rose - had just finished Happy Hunting with an unknown composer (Harold Karr) and lyricist (Matt Dubey). Although Sondheim wanted to write the music and lyrics, Merman refused to let another first-time composer write for her and demanded that Jule Styne write the music. Sondheim, concerned that writing lyrics again would pigeonhole him as a lyricist, called his mentor for advice. Hammerstein told him he should take the job, because writing a vehicle for a star would be a good learning experience. Sondheim agreed; Gypsy opened on May 21, 1959, and ran for 702 performances.  Merrily's failure greatly affected Sondheim; he was ready to quit theatre and do movies, create video games or write mysteries: "I wanted to find something to satisfy myself that does not involve Broadway and dealing with all those people who hate me and hate Hal." Sondheim and Prince's collaboration was suspended from Merrily to the 2003 production of Bounce, another failure.  However, Sondheim decided "that there are better places to start a show" and found a new collaborator in James Lapine after he saw Lapine's Twelve Dreams off-Broadway in 1981: "I was discouraged, and I don't know what would have happened if I hadn't discovered Twelve Dreams at the Public Theatre"; Lapine has a taste "for the avant-garde and for visually-oriented theatre in particular". Their first collaboration was Sunday in the Park with George (1984), with Sondheim's music evoking Georges Seurat's pointillism. Sondheim and Lapine won the 1985 Pulitzer Prize for Drama for the play, and it was revived on Broadway in 2008, and again in a limited run in 2017.  They collaborated on Into the Woods (1987), a musical based on several Brothers Grimm fairy tales. Although Sondheim has been called the first composer to bring rap music to Broadway (with the Witch in the opening number of "Into the Woods"), he attributes the first rap in theatre to Meredith Willson's "Rock Island" from The Music Man. The show was revived on Broadway in 2002.  Sondheim and Lapine's last work together was the rhapsodic Passion (1994), adapted from Ettore Scola's Italian film Passione D'Amore. With a run of 280 performances, Passion was the shortest-running show to win a Tony Award for Best Musical. CANNOTANSWER

Using a quote from the above article, answer the following question: Howw did Stephen collaborate with James?

Their first collaboration was Sunday in the Park with George (1984),