FATCHEF TEST CASE

IF SAY I HAVE 11 3
A 2
B 5
A 8

WHAT WOULD BE THE OUTPUT AND HOW?