My dad has 17 oak and maple boards from the lumber yard. Each oak board is 9 centimeters thick. Each maple board is 7 centimeters thick. When my dad stacks the boards, the stack is 151 centimeters thick. How many of each type of board does he have?