A restaurant had 3 pies, each cut into eighths. By noon, 3/4 of all the pieces were sold. How many pieces of pie were sold?