The two songs were recorded together as a single piece , and both were written by Paul McCartney ( credited to Lennon-McCartney ) , strings and brass arranged and scored by producer George Martin .
The two songs were recorded together as a single piece , and both were written by Paul McCartney ( credited to Lennon\/McCartney ) .