The class score is an exact product of one prior and the displayed feature likelihoods. Because the products are rational, no log or decimal approximation is needed.
highlighted = computed this step
The score product
The unnormalized score is the prior times the feature likelihoods. For A the exact product is 2/3·3/4·1/2 = 1/4.
score(A)=1/4
Why the B score is smaller
For B the product is 1/3·1/2·1/2 = 1/12.
score(B)=1/12
Summary
The independence assumption is what permits this product. The products are still exact rational arithmetic from integer counts.