A restaurant has 23 tables. Some of the tables seat 4 persons and the rest seat two persons. In all, 76 persons can be seated at once. How many tables of each kind are there?