Arsenal beat Cardiff 3-2