Did you also separate them? At 5 months they are definitely not weaners any more!
Agree with HH, could be pneumonia with all this weather we've been having. Could also be rhinitis, respiratory disease, ammonia/dust overload etc. Take their temperature and keep an eye on them.
Could just be muck up their snouts if you had nice weather yesterday and they've been snuffling about and breathed in.