Second period success allows Beverly to sink Pentucket