swaps - pay return on one equity & receive return on another equity

Can anyone help please page 253 readings 65 pricing and valuation of swaps (cfa readings)… A form of strategy is mentioned involving investing in two stocks to replicate the cashflows. Investing in one stock and short selling another…

“replicate the cash flows” of what? i dont have my book in front of me