A trapezoid has an area of 780 square meters. The height of the trapezoid is 40 ​meters, and the length of the longer base is twice that of the shorter base. Find the length of each base of the trapezoid.