Rivas bought a can of paint. He used 3/8 of it to paint a bookshelf. He used 1/4 of it to paint a wagon. He used some of it to paint a birdhouse and has 1/8 of paint left. How much did he use for the birdhouse?