At the fair, the chicken and the rabbits were placed under the same tent. The chickens and the rabbits have a total of 360 legs. If there were 105 animals, how many were rabbits?

4r + 2(105-r) = 360

Now solve for r