I am trying to install Xcode

OK where should I start the question is how do I get Xcode on my MacBook Pro 10.5.7 that I have just updated to Catalina? this all began when I purchase a MacBook that was for 2010 I didn’t know Xcode would work on that so I can purchase a MacBook Pro 2012 and I did my research at least I thought I did and it said when I first got it I was on Sierra so he said I cannot install Xcode until 10.15 so I updated to Catalina Now I was saying I need to be at 11 what gives

You can download a version of Xcode compatible with your macOS version from the download center: https://developer.apple.com/download/more/

You will need macOS 11 for Xcode 12.5+

I am trying to install Xcode
 
 
Q