Number Sum

The following grid of size 5x5 is partially complete with whole numbers from 1 to 7.

The sum of each row and column is shown on the edges of the grid.

Fill in the missing numbers to complete the grid.

2024202118
215
232662
2747
1721
1534521