In a magic square, each row, each column and both main diagonals have the same total. In the partially completed magic square shown, what number should replace x?

Use the interactivity below: