Law advances to state quarterfinals with 10-2 win