human
Find the number of words of X vowels and Y consonants that can be formed from M vowels and N consonants | Function to returns factorial of n.
Function to find nCr.
Function to find the number of words of X vowels and Y consonants can be formed from M vowels and N consonants.
Driver code.
Function call"
Solution in Python:

=====
Write me a code to find the number of words of X vowels and Y consonants that can be formed from M vowels and N consonants and the other steps required?
assistant
#Here is code to find the number of words of X vowels and Y consonants that can be formed from M vowels and N consonants and the other steps required.
 def fact ( n ) :
	res = 1
	for i in range ( 2 , n + 1 , 1 ) :
		res = res * i
	return res
def nCr ( n , r ) :
	return fact ( n ) // ( fact ( r ) * fact ( n - r ) )
def NumberOfWays ( X , Y , M , N ) :
	return fact ( X + Y ) * nCr ( M , X ) * nCr ( N , Y )
if __name__ == ' _ _ main _ _ ' :
	X = 2
	Y = 2
	M = 3
	N = 3
	print ( NumberOfWays ( X , Y , M , N ) )