Umm I’m sure you can find lots of that, it’s not really a specific thing to do more just something to refine realism.
First you have your Model Image – Image A and your Background Image – Image B
Go to image a, Take the colour syringe tool (i dont know if this is the official name of it lol) and go to the brightest place in the image, this is called the highlights, and take a sample of the colour. Go to the colour palette and find out the balance of R, G, B. Take note.
Do the same with the darkest place in the image, this is called the shadows, and take a sample and do the same thing.
Now go to your image B, and bring up the curves tool or any other colouring tool pretty much and adjust accordingly. 🙂
I’ll try and look for some tutorials for you