Triangle ABC is similar to triangle DEF with a ratio of 3/5 If the difference of their
perimeters is 40 inches, find the perimeter of each triangle.