Magnetism and Geometric Magnetic Frustration in YbFe2O4-Type and Garnet-Type Compounds