At the zoo, a cage had w snakes and x alligators. If y alligators were hiding How many alligators were not hiding?
Let's denote the number of alligators that were not hiding by z.

z = x - y

Therefore, the answer (symbolic expression) is: 

x - y