These are known as the “seven-point cause-and-effect” method and the “exchange and equality of oneself with others.” The “exchange-and-equality” method is the technique that you’ll find in the eighth chapter of Shantideva’s Guide to the Bodhisattva’s Way of Life.