Grupe buys Hayward, Calif., apartments for $30.5m