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