Returning them in (say) an array is a simpler way. How do you handle a function that returns two discrete things?
I realise it may seem simpler at this point to you, but in reality it doesn’t make sense. Note that there are languages that appear to allow multiple return values (Python for example), but they are just returning an array/tuple/similar thing