1) It is illegal for them to ask as some have surely pointed out already.
2)$22 is shit pay. Junior devs in NYC make 50.
3)These people are exploiting you and unless you have kids to feed, you should quit immediately.
Just curious, what law does this break?