It seems that there is something wrong with your eyes. As far as I know, so many girls have the same problems with you since they use makeup on a regular basis which is risky to get those cosmetics into their eyes. However, it is not deadly anyway. Now, you gotta need some hot water to carefully wash your eyes. Then if necessary, get some eye drops to drip. Typically, a few days later you are good to go.
Because the foundation is full of chemical that do great harm to your eyes and may cause your eyes infected if you don't take care of them. First, you should flush your eyes with water until the chemical of foundation is flushed out. Second, soak your eyes in water with your eyes opened and keep rinsing your eyes. Do this a few times until your eyes feel better. Third, use eyedrops to comfort your eyes. If this doesn't work, you should go to see a doctor for help immediately.
First thing you do is not rub the eye. That can just make it worse and harder to get out as well. And then you should wash it out and flush your eyes with plain water for at least five minutes. After you finish washing it out, then you also need to look at your eye in the mirror. If you see a lot of redness, if you can't actually open your eye, if you have a lot of pain, or if your vision is still blurry, then you need to get it evaluated either by an eye doctor or go into the emergency room.