A round table has 4 legs and a rectangular table has 6 legs. If 10 tables have a total of 52 legs, how many of the legs belong to round tables?