There are 234 boys and 286 girls in a school. All the students gather in the ground at the morning time for the Morning Prayer and stand/sit in queues (maintaining discipline).

In how many minimum rows all the students can stand/sit so that every row contains either only boys or only girls such that each row consists of equal number of students?