Your relative needs to use these links to recover that AppleID
and password:
If you forgot your Apple ID - Apple Support
If you forgot your Apple ID password - Apple Support
Then the relative needs to use this link to remove
their AppleID and password from the iPad so you can set the
iPad up with your own AppleID and password:
before sell/give away iDevice: https://support.apple.com/en-us/HT201351