The nutrients that promote both of those algaes to grow are Nitrates and Phosphates. Having both algaes growing in your tank means that there is an excess amount of those nutrients in your system.
Can you provide more information on your feeding habits, your filtration on your tank and how large (or small) your weekly water changes are? Those details can help us come up with some suggestions that might help you get this under control.