The nearly five-hour meeting started with a handshake and ended with the agreement between the two leaders.