28 , Judge H. Walter Croskey of the Second District Court of Appeals in Los Angeles ruled that children ages six to 18 may be taught only by credentialed teachers in public or private schools -- or at home by mom and dad but only if they have a teaching degree .