Original: West Side Story is a musical with a book by Arthur Laurents, music by Leonard Bernstein, and lyrics by Stephen Sondheim.
Simplified: The music was composed by Leonard Bernstein and the lyrics were by Stephen Sondheim.