Welcome!
Takes long to open any file or programs
If your 2012 Macbook Pro has the original mechanical hard drive, that largely explains your statement. Even the up-ordered i7 model that usually came with a faster mech hard drive than the base model (I'm typing from that now) is glacially slow with newer macOS versions.
We are limited in what we can accurately diagnose in this setting where we can neither see nor touch your computer. Fortunately there is a safe, secure way to show us diagnostics so we don't end up playing a protracted game of "20 Questions" with you that could go on for days.
We can quickly and within the confines of these forums help you determine what issues are at play if you use EtreCheck Pro, available here:
https://etrecheck.com/index
The free version will do nicely for this purpose, although the app is worthy of our financial support.
We can see hard data about drive performance, software conflicts, and RAM usage. Etrecheck is the development of a long-serving and trusted contributor here expressly for displaying information in these forums to help us help you. It will not reveal any personal or secure information.
Even with its security protection, EtreCheck is comprehensive enough for us to see and often recommend at-home fixes from one posting.
As the report often contains subtle clues not apparent to the casual computer user, the report is designed to be posted here where we old greybreads have interpreted thousands of such reports.Please this excellent user tip on posting long text reports like EtreCheck's.
How to use the Add Text Feature When Post… - Apple Community
My Mid 2012 13" Macbook Pro was feeling slow by the time I got to macOS 10.13 High Sierra. EtreCheck showed its drive to be struggling, with transfer speeds of 60-70 MB/sec. I installed an inexpensive aftermarket solid state drive at home. Now the same speed are close to 500MB/sec and I still use the computer daily, and enjoy using it.
If your old HDD is the issue we can make recommendations for what works best (not all aftermarket SSDs are equally Mac suitable).