No. 14 New Mexico beats Wyoming