How to look at another entity when tracking one entity?

hi community!


The green arrow is the entity I want to track, and the red arrow is the entity I need to look at :disappointed:
In other words, the position of the camera depends on the tracked object, and the orientation of the camera depends on the object you need to look at.
How should I achieve it