Swelling in right foot and pain in same leg

I am 22 weeks pregnant but I noticed from few days little swelling on my right foot and I also pain in right leg is anyone have the same problem ?? Can someone guide me about the reason or solution of it??