Longest Common Prefix of 2 Strings
Python 3, 54 bytes

Thanks Python for having a built-in function for this task! :D

import os;print(os.path.commonprefix(input().split()))


Takes input as two words separated by a space such as glossary global.