Please explain about formula1 qualifying.

Qualifying split into three period, known as Q1, Q2, and Q3.

Q1 - runs 20 cars for 18min. slowest five drivers are eliminated
Q2- the remaining 15 drivers have 15 minutes. another five slowest drivers are eliminated
Q3 - remaining 10 drivers decide the first 10 grid positions for the race