a rectangular photograph is surrounded by a border that is 3 inch wide on each side . the total area of the photograph and the border is m square inches . if the border had been 6 inches wide on each side , the total area would have been ( m + 178 ) square inches . what is the perimeter of the photograph , in inches ?