The left transistor sets a reference current on its resistor Iref = (6-0.766-0)/1k =5.23mA. This current is set in the right circuit and the voltages change so that the Iref can flow. i.e. 3.87V. The right transistor follows the left transistor because they have the same V(BE). set by the left resistor.