Cobb allows two runs in Rays' win