This is a test of commonsense. Complete the next sentence:

How to replace an exterior window trim
Pry off the old trim with a pry bar.
To avoid damaging the wall, hold a wood block against it. Rest the back of the pry bar on the wood block.
Slide the front end of the pry bar between the trim and the building, then pry off the pieces of trim and underlying trim boards. Use expanding foam to fill in wall gaps.