It takes two planets in resonance to tango around K2-146