Mavs punch ticket to state Legion tourney