From the given informatio, we can draw the following picture:
where x denote the shorter side of the rectangle and x+6 the longest one. Since the area of the rectangle is equal to the base times the height, we have

Since the area is 520 square centimeters, we have

Then, by distributing the variable x into the parentheses, we have the following equation:

or equivalently,

So, we can to apply the quadratic formula:

coming from the quadratic polynomial:

By comparing this polynomial with ours, we can note that

so, we get

which gives

Then, we have 2 possible solutions:

However, since the dimension are always positive numbers, the searched side measure 20 cm. In other words, the shorter side measures 20cm and the longest one 20+6=26 cm. Therefore, the answer is: 26 centimeters.