Cinderella made many new friends at the castle. After asking her fairy godmother to help, she invited her friends to go on a picnic. There were 36 heads and 104 legs in the group of horses, carriages, and riders. How many horses and how many people were there?