5. Xiao Ming has three identical custom dice, each face of the dice is written with an integer, and the sum of the numbers on opposite faces is equal. When the three dice are thrown at the same time, the numbers on the top faces are 57, 67, and 78, and the numbers on the bottom faces are all prime numbers. Then the sum of the six numbers on each die is $\qquad$
$240$