A cube has 6 faces.If you paint the outside of the cube and then cut it into 27 equal smaller cubes, how many small cubes have exactly 2 painted faces?