Implement a function to find the longest common subsequence between two legal contracts to identify boilerplate text.
Treat each contract as a sequence of whitespace-separated words, not individual characters. Return the longest sequence of shared words in their original order, joined by single spaces. If the final matched word is followed by a space in both inputs, preserve that trailing space. Return an empty string when no words are shared.
Input: two strings, contract_a and contract_b.
Output: a string containing one longest common word subsequence. If multiple answers have the same length, any one is acceptable unless the examples specify otherwise.
def longest_common_subsequence(contract_a, contract_b):