Finds arithmetic operations to be combined with four given numbers to make the total 24