Bob can convince Alice to spend half her tokens on proposition B but then betray her and spend all his tokens on B, resulting in 17 votes for B and only 7 for A.
When voting is anonymous there is no way to detect if voters keep their pledge or not, so this should deter them from voting in any other way than in their own interest.