Start from two exact confusion grids.
Start with grid A
Grid A has TP=2, FP=1, FN=1, and TN=1.
A=(TP,FP,FN,TN)=(2,1,1,1)
Show grid B too
Grid B has TP=1, FP=0, FN=2, and TN=2.
B=(TP,FP,FN,TN)=(1,0,2,2)
Every rate comes from counts
The precision, recall, and F-score rows are computed from these displayed counts.
rates come from visible counts