Modesto will seek an $18.5 million state grant to help turn an old motel near downtown into 48 low-cost studio apartments.