Cadets earn berth in Class M final