I just tried several time to connect my iPad 2 to the app store and it failed three times even though I was extremely careful the second two. Just to be sure, I then connected using my iMac and connection went through the first time.
The most obvious is that it is automatically issuing my iPac 2 mail address which is not my ID on the store and there was no place whatsoever to put the ID in if it is different. WHY?
Guess I will just have trash this idiot box because the only reason it is in use today is as an entertainment device. It was, and still has never been seen or used as an online device except for downloading certain FREE games from Apple.
It was originally purchased as a ASSISTANT for genealogical research; in particular connecting to my computer in my car via wifi to add information to my database from remote locations. i.e. archives, cemeteries, etc... because I do not have the financial capability to purchase something like this in my much later senior retirement years.
Your iPad is an iPad 2 and it has been obsolete for years and practically any app you try to download on it requires iOS 10 or newer. It might be time to invest in a new iPad as its almost 10 years old