nitrate phosphorus removal

Given the following parameters, what is the best possible solution to remove the nitrate phoshorus? 2 hour retention time, cost effective, high removal efficiency, sustainable, nitrate levels: 1-500 mg/l and phosphorus levels: 1-10 mg/l, budget: $100-$400.

thanks