can someone please tell me how to solve this error? This function is supposed to return the lesser of two given numbers if both numbers are even, but returns the greater if one or both numbers are odd I know there is a simple way to write, but this is my way and I'm curious to know why I got this error

 
    