Longhorns defeat Beavers 31-27 in the Alamo Bowl