Calibrated camera distance between two projected points

Already saw this post but still don’t know to sum up the four matrices/vectors to get the distance.