As you’re being held “hostage” by the device passcode set by your daughter, you’ll need to proceed on the basis of a forgotten device passcode. You’ll need connect your iPad to either a PC (with iTunes installed) or a Mac (with iTunes or Finder - as appropriate for the installed version of MacOS):
https://support.apple.com/en-gb/HT211078
After recovering access to the iPad, you’ll want to Properly prepare if for re-use with another AppleID account. This will completely disassociate the iPad from you daughters AppleID account - and avoid future Activation Lock issues:
https://support.apple.com/en-gb/HT201351
Whilst you’re not yet in need of the following, should something go awry, the following information and links might prove to be useful...
If your device is Activation Locked, this help page will provide most of the information that you’ll need:
https://support.apple.com/en-us/HT201365
If you have forgotten your AppleID or associated password, these can be recovered here:
https://iforgot.apple.com
To recover your credentials, you’ll need access to one of the following:
- Your primary email address mailbox that corresponds with your AppleID
- Any of the secondary/recovery email addresses that should be configured for your AppleID account
- Any of the trusted telephone numbers (fixed line or Cellular/Mobile) that are associated with your AppleID
Unless you AppleID account has not been fully/correctly configured, or has been seriously neglected, recovery of the AppleID and password should not be difficult.
More information about recovery of your AppleID:
https://support.apple.com/en-us/HT201354
More information about recovery of your AppleID password:
https://support.apple.com/en-us/HT201487
When you recover access to your credentials, you would be well advised to log-in to your AppleID account from a web browser - and verify/update any email addresses and trusted telephone numbers:
https://appleid.apple.com
I hope this information proves to helpful in restoring use of the iPad.