A grocery store bought yogurt for $2.80 per container and stored it in two refrigerators. During the night, one refrigerator malfunctioned and ruined 12 containers. If the remaining yogurt is sold for $3.94 per container, how many containers did the store buy if they made a profit of $46.20?

Let x be the total number of containers that the grocery store bought.

The damages cost: 280/46.20 = 12*
x = 54 containers bought.
Thus, 54 - 12 = <<54-12=42>>42 containers were sold.
Therefore, the store bought 42/2 = <<42/2=21>>21 containers per fridge. Answer: \boxed{21}.