Hi rectangle with length of 3x^2+6x-10 and width of 3x+5: distance around = 2(3x^2+6x-10) + 2(3x+5) = 6x^2+18x-10