For a field trip 12 students rode in bicycles and the rest filled up 13 magic school buses. How many students were in each magic school bus if a total of 259 students went on the field trip?