Dictionary.com
Thesaurus.com

give as good as one gets

Idioms  
  1. Return in kind, retaliate, as in In an argument Laura can give as good she gets, or Don't worry about the bullies in Bobby's class—he can give as good as he gets. The general idea of this expression dates from the late 1600s, but the precise wording was first recorded only in 1952.