given number of x calculate the minimum number of y to make x