Andrew drew a square with each side measuring 3 inches. Lindsay drew a triangle with each side measuring 4 inches. Which shape has a greater​ perimeter? Write an equation to help explain your answer.