Ella wants to write a number into each cell of a 3 × 3 grid so that the sum of the numbers in any two cells that share an edge is the same. She has already written two numbers, as shown in the diagram.
When Ella has completed the grid, what will be the sum of all the numbers in the grid?