West Indies beat Afghanistan by 47 runs