FERMAT 2018 Problem 15

Francesca put the integers 1,2,3,4,5,6,7,8,9 in the nine squares in the grid. She put one integer in each square and used no integer twice. She calculated the product of the three integers in each row and wrote the products to the right of the corresponding rows. She calculated the product of the integers in each column and wrote the products below the corresponding columns. Finally, she erased the integers from the nine squares. Which integer was in the square marked N?

Image

Answer Choices
A. 3
B. 8
C. 9
D. 6
E. 4