You have been given the following matrix:

Fill in the matrix, in such a way that the sum of the numbers in each row (horizontally, vertically, and diagonally) is 264, even if you hold the matrix upside down. You are only allowed to use the digits 1, 6, 8, and 9, and each number may appear only once in the matrix.