A Syosset student’s math skills put her in elite company at the national level.

Wanlin Li, 16, a sophomore at Syosset High School, tied for the fourth-highest score nationwide on the Mathematical Association of America’s USA Junior Mathematical Olympiad — a six-question, nine-hour exam taken by 230 students over two days.

advertisement | advertise on newsday

Li scored 29 out of a possible 42 points, qualifying for the Mathematical Olympiad Summer Program.

“I was really surprised; I didn’t think I did that well on the first day,” Li said. Of her passion for math, she said: “I just like how everything is connected and fits together.”

The four-week summer program, which runs through July 2 at Carnegie Mellon University, prepares students for possible participation in the International Mathematical Olympiad. The summer program’s top 12 performers are tapped to compete in the international event, being held in Hong Kong in July, as part of the U.S. Math Olympiad team.

To take the Junior Mathematical Olympiad, Li first took the American Mathematics Competition 10 exam and the American Invitational Mathematics Exam, with those scores being combined to make up her USA Junior Mathematical Olympiad index.

Lin, an officer in her school’s Mathletes Club, placed second this spring at the New York State Mathematics League competition and won a silver medal at the Long Island Math Fair.