In a kindergarten there are x bicycles and y tricycles. There are enough for each of the 120 children to have a ride at the same time. One of the children counts all the wheels and finds that there are 315 in total. How many bicycles and how many tricycles are there?