Sorry, laptops aren’t always upgradable.
While RAM and Storage are often upgradable! In this series the type of RAM and limit of two slots limits you to a max of 8GB. The SATA interface requires a SATA II (3.0Gbps) drive, some SATA III (6.0Gbps) drives may not work reliably.
Beyond that the logic board is limited to what Apple produced for this series [https://everymac.com/ultimate-mac-lookup/?search_keywords=MacBookPro5,3|MacBookPro5,3]. There is no Intel I Series or Apple M Series logic boards that will fit.