In a small bakery, there are different kinds of cookies made with various ingredients. The baker uses two types of flour for his cookies: whole wheat flour and all-purpose flour. The whole wheat flour is used in the proportions of
$$\frac{3}{8}$$
of the total weight of flour, and the all-purpose flour makes up the rest of the mixture. If the baker uses 32 ounces of flour in total, how many ounces of the whole wheat flour does he use?