Warriors, Knights headed to state tournament