GALLOWAY TOWNSHIP — With her ball in the rough just off the 18th fairway, Lexi Thompson faced the defining shot of the ShopRite LPGA Classic on Sunday afternoon

But before she swung her club, Thompson had to do some math.

Thompson sank a 20-foot putt to eagle the par-5 hole and win the $1.75 million Classic on the Bay Course at Seaview Hotel and Golf Club.

Thompson shot a 4-under-par 67 for a 54-hole total of 12-under 201. Jeuongeun Lee6, who won last week’s U.S Women’s Open and led the Classic by two shots early in Sunday’s back nine, shot a 70 and finished second, one shot back of Thompson.

Thompson made her pro debut at the Classic in 2010 but was playing at Seaview for the first time since 2015.

“It means the world to me to get this win here,” she said. “I knew I was playing well coming into the event.”

The eagle putt won Thompson the Classic, but her approach onto the 18th green was the shot of the tournament.

It came after she hit a 3-wood off the tee into the left rough. Thompson was 190 yards from the front of the green and 200 yards from the pin.

“I had sketchy lie,” she said. “I knew it was going to jump.”