The circuit works when there is a common ground (makes sense ofc but originally I thought they had to be separate), I didn’t want to put 5V and 12V on the same rail of the breadboard. Now what I find strange is that even without the 5V input voltage, I still get 10V at the output of the Op-amp which is very confusing.