Create two squares using the rectangular shape tool. Apply stroke layer style.



Create a triangular shape using the polygon shape tool.



Create a square frame shape using the custom shape tool.



Create a triangular shape using the polygon shape tool.



Double click the layer to open layer style window. Apply settings as shown.