Maria uses paper squares to create a rectangle. Joey cuts all of Maria’s squares in half to create triangles. He uses all the triangles to make a rectangle. There are 18 triangles in joey’s rectangle. How many squares where in Maria’s shape?