How to install OpenCV on Ubuntu 22.04 for C++

Hello everyone,

I have not major experience with C++.
However, I have tried every demo under the sun to install OpenCV on my device for C++ (on VS code).
Can someone please help me cause nothing has worked so far.

Thank you in advacen