If Katherine has 4 apples and 3 times as many pears in her fridge, how many bananas does she have if she has a total of 21 pieces of fruit?
Please reason step by step, and put your final answer within \boxed{}.
user