Anthony, William, Christopher and Mathew are sharing 4 hats: red, green blue and gold. If Anthony doesn't wear red, william doesnt wear green,Christopher doesn't wear blue and Matthew doesnt wear gold. how many different ways can they share the four hats?​