There are nine cubes how can i arrange the numbers 1-9 in the boxes.Their sums vertically,horizontally,and diagonally must be 15.

Note:each digit should be used only once.
please do help me

9 1 5

4 8 3
2 6 7

diagonally one way, or both? If both, then I am wrong.

See also

http://www.jiskha.com/display.cgi?id=1310631918

To arrange the numbers 1-9 in nine cubes such that their sums vertically, horizontally, and diagonally add up to 15, you can follow these steps:

1. Start by placing the number 5 in the center cube. This will help ensure that the sums in all directions include the number 5.

2. Now, let's consider the different possibilities for the corner cubes (1, 3, 7, and 9):

- If you place 1 in a corner cube, it needs to be opposite 9, and 3 needs to be opposite 7.
- Similarly, if you place 3 in a corner cube, it needs to be opposite 7, and 1 needs to be opposite 9.
- Placing 7 in a corner cube requires it to be opposite 3, and 9 needs to be opposite 1.
- If you place 9 in a corner cube, it needs to be opposite 1, and 7 needs to be opposite 3.

3. Now, let's consider the remaining four edge cubes (2, 4, 6, and 8):

- Each of these numbers should be placed opposite the number that is diagonal to it.

4. Once you have arranged the corner and edge cubes, you can fill in the remaining center cube, which should be the number that is opposite to 5.

Here's an example arrangement:

1 6 8
7 5 3
2 9 4

In this arrangement, the sums of all the rows, columns, and diagonal are equal to 15:

- Rows: 1 + 6 + 8 = 7 + 5 + 3 = 2 + 9 + 4 = 15
- Columns: 1 + 7 + 2 = 6 + 5 + 9 = 8 + 3 + 4 = 15
- Diagonals: 1 + 5 + 4 = 8 + 5 + 2 = 15

Remember, there may be multiple valid arrangements, depending on the placement of the corner and edge cubes.