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
< ? php function findValues ( $ a , $ b ) { if ( ( $ a - $ b ) % 2 == 1 ) { echo " - 1" ; return ; } echo ( $ a - $ b ) / 2 , " ▁ " , ( $ a + $ b ) / 2 ; } $ a = 12 ; $ b = 8 ; findValues ( $ a , $ b ) ; ? >