Otto used 6 cups of whole wheat flour and x cups of white flour in the recipe. What is the equation that can be used to find the value of y, the total amount of flour that Otto used in the recipe, and what are the constraints on the values of x and y?