Tutorial for Keypad and LCD to Arduino MEGA

Hi everyone ,I would like to rephrase my question Im asking for a example and how to connect the LCD and Keypad together and then connect to Arduino Mega .I can find the library example of keypad and LCD separately but i need to connect them tgt so im not so sure .