The side of one square is 3 cm longer than the twice of the second square the difference in their areas is 144 cm2. Find the sides of the two squares.