Thanks for the hints. Still stuck on 47 even withthe nested hints. I can't seem to exit with both red and green. Just one or the other.
Managed to solve 47.For anyone still needing another hint: both red and green exit from the left side of the portal