A midwestern music competition awarded 40 ribbons. The number of blue ribbons awarded was 2 less than the number of white ribbons. The number of red ribbons
was 3 more than the number of white ribbons. How many of each kind of ribbon was awarded?