human
Find the values of X and Y in the Given Equations | Function to find the values of X and Y.
base condition.
required answer.
Driver Code"
Solution in Python:
 ... What is a code to find the values of X and Y in the Given Equations and the other steps required?
assistant
#Here is code to find the values of X and Y in the Given Equations and the other steps required.
 def findValues ( a , b ) :
	if ( ( a - b ) % 2 == 1 ) :
		print ( " - 1" ) ;
		return ;
	print ( ( a - b ) // 2 , ( a + b ) // 2 ) ;
a = 12 ; b = 8 ;
findValues ( a , b ) ;