Ria wants to write a number in each box of the diagram shown. She has already written two of the numbers. She wants the sum of all the numbers to equal 35, the sum of the numbers in first three boxes to equal 22, and the sum of the numbers in the last three boxes to equal 25. What is the product of the numbers she writes in the grey boxes?