You can teach yourself. Breaststroke and freestyle are not difficult, but they belong to two different ways. You'd better learn one first. You should be able to swim 25 meters by going to the pool five times. Don't go continuously. This is my teaching experience. I'll give you some advice on self-study. On the first day, I will practice floating and kick the wall to find the feeling of sliding. I practice 1 hour, then I practice kicking for an hour and have a rest for two days. The next day, I will kick the wall for half an hour, and then continue to kick for an hour. In the last half hour, I can go home and rest for two days. On the third day, I will kick the wall for half an hour and rest for another half an hour. Take a day off. On the fourth day, kick for half an hour first, then add hands and breath for half an hour, set yourself a shorter goal to accomplish, and finally set yourself a longer goal to accomplish. It is best to swim 25 meters, swim as many times as possible, swim until you are exhausted, and go home and have a good rest. On the fifth day, try to swim 25 meters first, swim at the slowest speed after several times, and think about how to do the action in your mind. At this time, you will basically learn to swim. These methods can be used to learn breaststroke or freestyle.
Don't think too much about swimming at first. Think back carefully on the fifth day, and it's best to watch online videos. Leg movements are very important. Watch how to make an online video. At the same time, it is ok to find someone who can help you in the pool. Don't go to school continuously. Take a break for a day or two, so that your progress will be faster. I wish you an early learning.