MissTeaLeaves's feed

Hey how did they solve the 1st question?? Is there any formula???
I know I'm dumb