These are the names of two well-known intermittent fasting methods. 16-8 means to fast for 16 hours and to eat for 8 hours. You can just skip breakfast, for example. 5-2 means to eat for 5 days and to fast for two whole days.