How much do you feed each pig per day?
I would estimate this would last at least 2 months. Maybe more.
The hay depends on how often they go through what you give them. If this were Coco, (my one gp), I would guess about 7 months or so.
If you follow the guidelines to feed 1/8 cup per pig per day of pellets, that means you would get 100 days from 25 lbs. I can't see only feeding my two pigs 1/4 cup of pellets a day though. I give them 1/3 of a cup for the two of them and they finish that off. Hay is harder to guesstimate because appetites vary so much. I bought 25 pounds of Kleenmama hay as you did and am hoping to get 3-4 months out of it.
The pellets will last several months if you are feeding a total of 1/2 cup daily. Freeze the majority to keep the C from degrading so badly (also helps to keep them fresher, longer) and keep what you will use in a cool, dark, dry place preferably in an airtight container only taking out what you need for the week.
The hay should last 2-3 months depending on how much they eat.
I get 25ibs of pellets at a time and feed each of my boys a bit less than 1/8 th a cup a day each and they last me...a long time. I'd say nearly a year, maybe 8-9 months or more probably. And hay, it really depends, I get full square bales of hay for my pigs and one full bale last only about 6 mths, but a lot of it gets wasted.