Measure the basement window opening with the old window still in place, along the height and width, from the furthest points out along the inner edge of the frame that’s inside the brick perimeter. Order the replacement window with those dimensions. Leave the old window in place while you await the delivery of the new one.
Pry off the trim around the interior edge of the window opening with a hammer and pry bar. Don't break it. Set it aside. The trim removal should reveal a small space between the edge of the casing and the wood frame inside the brick perimeter.
Cut through any screws or nails that are holding the window in place, by running a reciprocal saw inside the exposed space, cutting through anything in there. Pull the window out.
Place the new window in the opening, pushing it back until it rests against the border of trim around the exterior edge of the opening.
Slide shims under and alongside the window unit until a level shows the unit is straight and level. Secure the unit with the provided installation screws, shooting them out through the sides of the unit and into the wood frame along the perimeter of the opening.
Tuck fiberglass insulation into spaces around the window unit.
Reinstall the interior trim around the perimeter of the window, covering the spaces. Nail the trim in place with a hammer and trim nails.
Caulk around the trim where it meets the wall and the window.