assuming both batteries are otherwise identical (except for charge level remaining), then,
Battery A - Battery B
= 4/5 - 9/20
we need to convert both fractions to same denominator to perform the subtraction easily. Note that the Least Common Multiple for 5 and 20 is 20, hence we convert both denominators to 20,