First I dragged the flag onto the wall. I then changed the flag layer to hard light. I duplicated the brick layer and desaturated it. I then duplicated the grayscale brick wall to a new document, applied a gausien blur and saved it as a map. I then selected the flag layer and did filter -> distort -> displace. This made it look like the flag had been spray painted onto the wall.